}
+ ActivityMgrAccountSettings AccountSettings;
+ AccountSettings.Address = AccountAddress;
+ AccountSettings.Port = AccountPort;
+ AccountSettings.Username = AccountUsername;
+ AccountSettings.Password = AccountPassword;
+ AccountSettings.SSL = AccountSSL;
+ AccountSettings.Prefix = AccountPrefix;
+ AccountSettings.Dir = AccountDir;
+
CardDAVConn->SetupConnection(AccountAddress, AccountPort, AccountUsername, AccountPassword, AccountSSL, AccountPrefix, AccountDir);
CardDAVConn->SetupVariables(&ActivityList, ActivityTaskID);
CardDAVConn->SetupResultBools(&BlankBool, &BlankBool);
ActivityListAccount.insert(std::make_pair(ActivityTaskID, TaskAccount));
ActivityListFilename.insert(std::make_pair(ActivityTaskID, TaskFilename));
ActivityListFullFilename.insert(std::make_pair(ActivityTaskID, TaskFullFilename));
+ ActivityListAccSettings.insert(std::make_pair(ActivityTaskID, AccountSettings));
ActivityListETag.insert(std::make_pair(ActivityTaskID, ETagDBPtr->GetETag(TaskFilename)));
ActivityListETagOriginal.insert(std::make_pair(ActivityTaskID, ETagDBPtr->GetETagOriginal(TaskFilename)));
ActivityListAccount.insert(std::make_pair(ActivityTaskID, TaskAccount));
ActivityListFilename.insert(std::make_pair(ActivityTaskID, TaskFilename));
ActivityListFullFilename.insert(std::make_pair(ActivityTaskID, TaskFullFilename));
+ ActivityListAccSettings.insert(std::make_pair(ActivityTaskID, AccountSettings));
ActivityListETag.insert(std::make_pair(ActivityTaskID, ETagDBPtr->GetETag(TaskFilename)));
ActivityListETagOriginal.insert(std::make_pair(ActivityTaskID, ETagDBPtr->GetETagOriginal(TaskFilename)));
ActivityListConn.insert(std::make_pair(ActivityTaskID, CardDAVConn));
ActivityListFilename.insert(std::make_pair(ActivityTaskID, TaskFilename));
ActivityListIndex.insert(std::make_pair(ActivityTaskID, itemindex));
+ ActivityListAccSettings.insert(std::make_pair(ActivityTaskID, AccountSettings));
} else if (TaskType == 3){
ActivityListTaskDetail.insert(std::make_pair(ActivityTaskID, AccountPrefix));
ActivityListAccount.insert(std::make_pair(ActivityTaskID, TaskAccount));
ActivityListIndex.insert(std::make_pair(ActivityTaskID, itemindex));
+ ActivityListAccSettings.insert(std::make_pair(ActivityTaskID, AccountSettings));
}
wxString ItemDes;
};
+struct ActivityMgrAccountSettings{
+ wxString Address;
+ int Port;
+ wxString Username;
+ wxString Password;
+ bool SSL;
+ wxString Prefix;
+ wxString Dir;
+};
+
/** Implementing frmActivityMgrADT */
class frmActivityMgr : public frmActivityMgrADT
{
std::map<int,wxString> ActivityListFilename;
std::map<int,wxString> ActivityListFullFilename;
std::map<int,CardDAV*> ActivityListConn;
+ std::map<int,ActivityMgrAccountSettings> ActivityListAccSettings;
std::map<int,wxString> ActivityListETag;
std::map<int,wxString> ActivityListETagOriginal;
std::map<int,wxDateTime> ActivityListFinDate;