Add sync to IEmailService.

This supports the EasService design.

Yes, I just removed a startSync function from this interface last month. No,
I didn't quite know at the time that I'd be adding one back. :)

Change-Id: I19d9c7838473d8982560764fdba0056cba03d132
This commit is contained in:
Yu Ping Hu 2014-02-25 18:07:07 -08:00
parent 0132856e67
commit 4a5b11d650
4 changed files with 17 additions and 1 deletions

View File

@ -326,6 +326,10 @@ public class EmailServiceProxy extends ServiceProxy implements IEmailService {
}, "sendMail");
}
@Override
public void sync(final long accountId, final boolean updateFolderList,
final int mailboxType, final long[] folders) {}
@Override
public IBinder asBinder() {
return null;

View File

@ -21,6 +21,7 @@ import com.android.emailcommon.provider.HostAuth;
import com.android.emailcommon.provider.Account;
import com.android.emailcommon.service.IEmailServiceCallback;
import com.android.emailcommon.service.SearchParams;
import android.os.Bundle;
interface IEmailService {
@ -31,6 +32,8 @@ interface IEmailService {
boolean background);
oneway void updateFolderList(long accountId);
void sync(long accountId, boolean updateFolderList, int mailboxType, in long[] foldersToSync);
// Push-related functionality.
// Notify the service that the push configuration has changed for an account.

View File

@ -390,6 +390,10 @@ public abstract class EmailServiceStub extends IEmailService.Stub implements IEm
LogUtils.e(Logging.LOG_TAG, "pushModify invalid for account type for %d", accountId);
}
@Override
public void sync(final long accountId, final boolean updateFolderList,
final int mailboxType, final long[] folders) {}
@Override
public void sendMail(long accountId) throws RemoteException {
sendMailImpl(mContext, accountId);

View File

@ -46,7 +46,6 @@ import android.provider.ContactsContract.RawContacts;
import android.provider.SyncStateContract;
import com.android.email.R;
import com.android.emailcommon.Api;
import com.android.emailcommon.Logging;
import com.android.emailcommon.provider.Account;
import com.android.emailcommon.provider.EmailContent;
@ -672,5 +671,11 @@ public class EmailServiceUtils {
@Override
public void pushModify(long accountId) throws RemoteException {
}
@Override
public void sync(final long accountId, final boolean updateFolderList,
final int mailboxType, final long[] folders) {
}
}
}