10 //preffilename = wxT("noo");
12 #elif defined(__WIN32__)
15 UserDir.Append(wxString::FromUTF8(getenv("APPDATA")));
16 UserDir.Append(wxT("\\Xestia\\Address Book\\"));
18 #elif defined(__APPLE__)
21 UserDir.Append(wxString::FromUTF8(getenv("HOME")));
22 UserDir.Append(wxT("/Library/Preferences/Xestia/Address Book/"));
27 UserDir.Append(wxString::FromUTF8(getenv("HOME")));
28 UserDir.Append(wxT("/.xestiaab/"));
36 wxString GetUserPrefDir()
41 #if defined(__HAIKU__)
43 //preffilename = wxT("noo");
45 #elif defined(__WIN32__)
48 UserPrefDir.Append(wxString::FromUTF8(getenv("APPDATA")));
49 UserPrefDir.Append(wxT("\\Xestia\\Address Book\\preferences\\"));
51 #elif defined(__APPLE__)
54 UserPrefDir.Append(wxString::FromUTF8(getenv("HOME")));
55 UserPrefDir.Append(wxT("/Library/Preferences/Xestia/Address Book/preferences/"));
60 UserPrefDir.Append(wxString::FromUTF8(getenv("HOME")));
61 UserPrefDir.Append(wxT("/.xestiaab/preferences/"));
69 wxString GetRecoveryDB()
72 wxString RecoveryDBFile;
74 #if defined(__HAIKU__)
76 //preffilename = wxT("noo");
78 #elif defined(__WIN32__)
80 RecoveryDBFile.Clear();
81 RecoveryDBFile.Append(wxString::FromUTF8(getenv("APPDATA")));
82 RecoveryDBFile.Append(wxT("\\Xestia\\Address Book\\recovery.db"));
84 #elif defined(__APPLE__)
86 RecoveryDBFile.Clear();
87 RecoveryDBFile.Append(wxString::FromUTF8(getenv("HOME")));
88 RecoveryDBFile.Append(wxT("/Library/Preferences/Xestia/Address Book/recovery.db"));
92 RecoveryDBFile.Clear();
93 RecoveryDBFile.Append(wxString::FromUTF8(getenv("HOME")));
94 RecoveryDBFile.Append(wxT("/.xestiaab/.recovery.db"));
98 return RecoveryDBFile;
102 wxString GetAccountDir(wxString AccName, bool ServerCert)
107 #if defined(__HAIKU__)
109 #elif defined(__WIN32__)
112 AccountDir.Append(wxString::FromUTF8(getenv("APPDATA")));
113 AccountDir.Append(wxT("\\Xestia\\Address Book\\accounts\\"));
114 AccountDir.Append(AccName);
115 AccountDir.Append(wxT("\\"));
116 if (ServerCert == TRUE){
117 AccountDir.Append(wxT("server.crt"));
120 #elif defined(__APPLE__)
123 AccountDir.Append(wxString::FromUTF8(getenv("HOME")));
124 AccountDir.Append(wxT("/Library/Preferences/Xestia/Address Book/accounts/"));
125 AccountDir.Append(AccName);
126 AccountDir.Append(wxT("/"));
127 if (ServerCert == TRUE){
128 AccountDir.Append(wxT("server.crt"));
134 AccountDir.Append(wxString::FromUTF8(getenv("HOME")));
135 AccountDir.Append(wxT("/.xestiaab/accounts/"));
136 AccountDir.Append(AccName);
137 AccountDir.Append(wxT("/"));
138 if (ServerCert == TRUE){
139 AccountDir.Append(wxT("server.crt"));
148 wxString GetAccountsFile()
151 wxString AccountsFile;
153 #if defined(__HAIKU__)
155 #elif defined(__WIN32__)
157 AccountsFile.Clear();
158 AccountsFile.Append(wxString::FromUTF8(getenv("APPDATA")));
159 AccountsFile.Append(wxT("\\Xestia\\Address Book\\preferences\\accounts"));
161 #elif defined(__WIN32__)
163 AccountsFile.Clear();
164 AccountsFile.Append(wxString::FromUTF8(getenv("HOME")));
165 AccountsFile.Append(wxT("/Library/Preferences/Xestia/Address Book/preferences/accounts"));
169 AccountsFile.Clear();
170 AccountsFile.Append(wxString::FromUTF8(getenv("HOME")));
171 AccountsFile.Append(wxT("/.xestiaab/preferences/accounts"));
179 wxString GetSettingsFile()
182 wxString SettingsFile;
184 #if defined(__HAIKU__)
186 #elif defined(__WIN32__)
188 SettingsFile.Clear();
189 SettingsFile.Append(wxString::FromUTF8(getenv("APPDATA")));
190 SettingsFile.Append(wxT("\\Xestia\\Address Book\\preferences\\settings"));
192 #elif defined(__APPLE__)
194 SettingsFile.Clear();
195 SettingsFile.Append(wxString::FromUTF8(getenv("HOME")));
196 SettingsFile.Append(wxT("/Library/Preferences/Xestia/Address Book/preferences/settings"));
200 SettingsFile.Clear();
201 SettingsFile.Append(wxString::FromUTF8(getenv("HOME")));
202 SettingsFile.Append(wxT("/.xestiaab/preferences/settings"));