diff options
Diffstat (limited to 'plugins/StatusManager/src/StartupStatus/startupstatus.h')
-rw-r--r-- | plugins/StatusManager/src/StartupStatus/startupstatus.h | 23 |
1 files changed, 8 insertions, 15 deletions
diff --git a/plugins/StatusManager/src/StartupStatus/startupstatus.h b/plugins/StatusManager/src/StartupStatus/startupstatus.h index 2c9f03b40e..e680962e17 100644 --- a/plugins/StatusManager/src/StartupStatus/startupstatus.h +++ b/plugins/StatusManager/src/StartupStatus/startupstatus.h @@ -21,17 +21,6 @@ #define SSMODULENAME "StartupStatus" -struct TSSSetting : public PROTOCOLSETTINGEX, public MZeroedObject -{ - TSSSetting(PROTOACCOUNT *pa); - TSSSetting(int profile, PROTOACCOUNT *pa); - ~TSSSetting(); -}; - -int SSCompareSettings(const TSSSetting *p1, const TSSSetting *p2); - -typedef OBJLIST<TSSSetting> TSettingsList; - struct PROFILECE { int profile; @@ -41,14 +30,17 @@ struct PROFILECE struct PROFILEOPTIONS : public MZeroedObject { + __inline PROFILEOPTIONS() : + ps(10, CompareProtoSettings) + {} + __inline ~PROFILEOPTIONS() { - delete ps; mir_free(tszName); } wchar_t *tszName; - TSettingsList* ps; + TProtoSettings ps; BOOL showDialog; BOOL createTtb; BOOL createMmi; @@ -133,10 +125,11 @@ void StartupStatusUnload(); int SSLoadMainOptions(); -TSettingsList* GetCurrentProtoSettings(); +void GetCurrentProtoSettings(TProtoSettings&); // profile -int GetProfile(int profileID, TSettingsList& arSettings ); +void FillStatus(SMProto &ps, int profile); +int GetProfile(int profileID, TProtoSettings& arSettings ); wchar_t *GetStatusMessage(int profile, char *szProto); INT_PTR LoadAndSetProfile(WPARAM wParam, LPARAM lParam); |