module states are now saved correctly

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13851 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jérôme Duval
2005-07-29 12:05:22 +00:00
parent e3d946e533
commit f058feb72f
4 changed files with 75 additions and 62 deletions
@@ -39,7 +39,7 @@ public:
const char *Password() { return fPassword.String(); }
bool IsNetworkPassword() {return fIsNetworkPassword;}
const char *ModuleName() {return fModuleName.String();}
BMessage *GetState(const char *name);
status_t GetState(const char *name, BMessage *stateMsg);
void SetWindowFrame(const BRect &fr) { fWindowFrame = fr;}
void SetWindowTab(int32 tab) { fWindowTab = tab;}
@@ -54,9 +54,9 @@ public:
void SetPasswordTime(bigtime_t pt) {fPasswordTime = pt;}
void SetPassword(char *pw) {fPassword = pw;} // Can not set network password from here.
void SetModuleName(const char *mn) {fModuleName = mn;}
void SetState(const char *name,BMessage *in);
void SetState(const char *name, BMessage *stateMsg);
void SaveSettings();
BMessage * GetSettings();
BMessage & GetSettings();
private:
BRect fWindowFrame;
int32 fWindowTab;
@@ -75,7 +75,7 @@ private:
bool fIsNetworkPassword;
BMessage stateMsg, currentMessage;
BMessage fSettings;
BPath ssPath,networkPath;
};