1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-27 03:32:16 -05:00

add an "always bcc this address" preference

This commit is contained in:
Jesse Vincent 2008-10-29 03:21:27 +00:00
parent 72443b0ee7
commit 3d4bfc1aa5

View File

@ -27,6 +27,7 @@ public class Account implements Serializable {
String mDescription; String mDescription;
String mName; String mName;
String mEmail; String mEmail;
String mAlwaysBcc;
int mAutomaticCheckIntervalMinutes; int mAutomaticCheckIntervalMinutes;
long mLastAutomaticCheckTime; long mLastAutomaticCheckTime;
boolean mNotifyNewMail; boolean mNotifyNewMail;
@ -73,6 +74,7 @@ public class Account implements Serializable {
mTransportUri = Utility.base64Decode(preferences.mSharedPreferences.getString(mUuid mTransportUri = Utility.base64Decode(preferences.mSharedPreferences.getString(mUuid
+ ".transportUri", null)); + ".transportUri", null));
mDescription = preferences.mSharedPreferences.getString(mUuid + ".description", null); mDescription = preferences.mSharedPreferences.getString(mUuid + ".description", null);
mAlwaysBcc = preferences.mSharedPreferences.getString(mUuid + ".alwaysBcc", mAlwaysBcc);
mName = preferences.mSharedPreferences.getString(mUuid + ".name", mName); mName = preferences.mSharedPreferences.getString(mUuid + ".name", mName);
mEmail = preferences.mSharedPreferences.getString(mUuid + ".email", mEmail); mEmail = preferences.mSharedPreferences.getString(mUuid + ".email", mEmail);
mAutomaticCheckIntervalMinutes = preferences.mSharedPreferences.getInt(mUuid mAutomaticCheckIntervalMinutes = preferences.mSharedPreferences.getInt(mUuid
@ -140,6 +142,15 @@ public class Account implements Serializable {
this.mEmail = email; this.mEmail = email;
} }
public String getAlwaysBcc() {
return mAlwaysBcc;
}
public void setAlwaysBcc(String alwaysBcc) {
this.mAlwaysBcc = alwaysBcc;
}
public boolean isVibrate() { public boolean isVibrate() {
return mVibrate; return mVibrate;
} }
@ -177,6 +188,7 @@ public class Account implements Serializable {
editor.remove(mUuid + ".description"); editor.remove(mUuid + ".description");
editor.remove(mUuid + ".name"); editor.remove(mUuid + ".name");
editor.remove(mUuid + ".email"); editor.remove(mUuid + ".email");
editor.remove(mUuid + ".alwaysBcc");
editor.remove(mUuid + ".automaticCheckIntervalMinutes"); editor.remove(mUuid + ".automaticCheckIntervalMinutes");
editor.remove(mUuid + ".lastAutomaticCheckTime"); editor.remove(mUuid + ".lastAutomaticCheckTime");
editor.remove(mUuid + ".notifyNewMail"); editor.remove(mUuid + ".notifyNewMail");
@ -233,6 +245,7 @@ public class Account implements Serializable {
editor.putString(mUuid + ".description", mDescription); editor.putString(mUuid + ".description", mDescription);
editor.putString(mUuid + ".name", mName); editor.putString(mUuid + ".name", mName);
editor.putString(mUuid + ".email", mEmail); editor.putString(mUuid + ".email", mEmail);
editor.putString(mUuid + ".alwaysBcc", mAlwaysBcc);
editor.putInt(mUuid + ".automaticCheckIntervalMinutes", mAutomaticCheckIntervalMinutes); editor.putInt(mUuid + ".automaticCheckIntervalMinutes", mAutomaticCheckIntervalMinutes);
editor.putLong(mUuid + ".lastAutomaticCheckTime", mLastAutomaticCheckTime); editor.putLong(mUuid + ".lastAutomaticCheckTime", mLastAutomaticCheckTime);
editor.putBoolean(mUuid + ".notifyNewMail", mNotifyNewMail); editor.putBoolean(mUuid + ".notifyNewMail", mNotifyNewMail);