--- a/ipsservices/nmipssettings/inc/nmipssettingsmanagerbase.h Fri Apr 16 14:51:52 2010 +0300
+++ b/ipsservices/nmipssettings/inc/nmipssettingsmanagerbase.h Mon May 03 12:23:15 2010 +0300
@@ -33,24 +33,29 @@
class NmIpsSettingsManagerBase
{
public:
- NmIpsSettingsManagerBase(const NmId &mailboxId, CEmailAccounts *account);
+
+ NmIpsSettingsManagerBase(const NmId &mailboxId, CEmailAccounts *account, IpsServices::TIpsSetAccountTypes);
virtual ~NmIpsSettingsManagerBase();
-
virtual bool readSetting(IpsServices::SettingItem settingItem, QVariant &settingValue);
virtual bool writeSetting(IpsServices::SettingItem settingItem, const QVariant &settingValue);
virtual int deleteMailbox();
- NmId& mailboxId();
+ IpsServices::TIpsSetAccountTypes accountType() const;
+ NmId mailboxId() const;
+ virtual int determineDefaultIncomingPort() = 0;
+ int determineDefaultOutgoingPort();
+ NmIpsExtendedSettingsManager &extendedSettingsManager() const;
+
+private:
-private:
bool saveSettings();
-protected:
+protected: // data.
+
CEmailAccounts *mAccount; // Owned.
CImSmtpSettings *mSmtpSettings; // Owned.
-
NmIpsExtendedSettingsManager *mExtendedSettingsManager; // Owned.
-
TSmtpAccount mSmtpAccount;
+ IpsServices::TIpsSetAccountTypes mAccountType;
NmId mMailboxId;
};