diff --git a/src/com/fsck/k9/mail/Store.java b/src/com/fsck/k9/mail/Store.java index 904a16baa..e112b0de7 100644 --- a/src/com/fsck/k9/mail/Store.java +++ b/src/com/fsck/k9/mail/Store.java @@ -29,17 +29,13 @@ public abstract class Store { /** * Remote stores indexed by Uri. */ - private static HashMap mStores = new HashMap(); + private static HashMap sStores = new HashMap(); + /** * Local stores indexed by UUid because the Uri may change due to migration to/from SD-card. */ - private static HashMap mLocalStores = new HashMap(); + private static HashMap sLocalStores = new HashMap(); - protected final Account mAccount; - - protected Store(Account account) { - mAccount = account; - } /** * Get an instance of a remote mail store. @@ -51,7 +47,7 @@ public abstract class Store { throw new RuntimeException("Asked to get non-local Store object but given LocalStore URI"); } - Store store = mStores.get(uri); + Store store = sStores.get(uri); if (store == null) { if (uri.startsWith("imap")) { store = new ImapStore(account); @@ -62,7 +58,7 @@ public abstract class Store { } if (store != null) { - mStores.put(uri, store); + sStores.put(uri, store); } } @@ -78,15 +74,23 @@ public abstract class Store { * @throws UnavailableStorageException if not {@link StorageProvider#isReady(Context)} */ public synchronized static LocalStore getLocalInstance(Account account, Application application) throws MessagingException { - Store store = mLocalStores.get(account.getUuid()); + Store store = sLocalStores.get(account.getUuid()); if (store == null) { store = new LocalStore(account, application); - mLocalStores.put(account.getUuid(), store); + sLocalStores.put(account.getUuid(), store); } return (LocalStore) store; } + + protected final Account mAccount; + + + protected Store(Account account) { + mAccount = account; + } + public abstract Folder getFolder(String name); public abstract List getPersonalNamespaces(boolean forceListAll) throws MessagingException; @@ -96,20 +100,23 @@ public abstract class Store { public boolean isCopyCapable() { return false; } + public boolean isMoveCapable() { return false; } + public boolean isPushCapable() { return false; } + public boolean isSendCapable() { return false; } + public boolean isExpungeCapable() { return false; } - public void sendMessages(Message[] messages) throws MessagingException { }