149 #include "TargetConditionals.h"
153 #include <mach-o/dyld.h>
157 #define DEFAULT_ACCOUNT "accounts"
158 #define DEFAULT_CERT "certs"
159 #define DEFAULT_CONTRACT "contracts"
160 #define DEFAULT_CREDENTIAL "credentials"
161 #define DEFAULT_CRON "cron"
162 #define DEFAULT_INBOX "inbox"
163 #define DEFAULT_MARKET "markets"
164 #define DEFAULT_MINT "mints"
165 #define DEFAULT_NYM "nyms"
166 #define DEFAULT_NYMBOX "nymbox"
167 #define DEFAULT_OUTBOX "outbox"
168 #define DEFAULT_PAYMENTINBOX "paymentInbox"
169 #define DEFAULT_PUBCRED "pubcred"
170 #define DEFAULT_PUBKEY "pubkeys"
171 #define DEFAULT_PURSE "purse"
172 #define DEFAULT_RECEIPT "receipts"
173 #define DEFAULT_RECORDBOX "recordBox"
174 #define DEFAULT_EXPIREDBOX "expiredBox"
175 #define DEFAULT_SCRIPT "scripts"
176 #define DEFAULT_SMARTCONTRACTS "smartcontracts"
177 #define DEFAULT_SPENT "spent"
178 #define DEFAULT_USERACCT "useraccounts"
180 #define KEY_ACCOUNT "account"
181 #define KEY_CERT "cert"
182 #define KEY_CONTRACT "contract"
183 #define KEY_CREDENTIAL "credential"
184 #define KEY_CRON "cron"
185 #define KEY_INBOX "inbox"
186 #define KEY_MARKET "market"
187 #define KEY_MINT "mint"
188 #define KEY_NYM "nym"
189 #define KEY_NYMBOX "nymbox"
190 #define KEY_OUTBOX "outbox"
191 #define KEY_PAYMENTINBOX "paymentinbox"
192 #define KEY_PUBCRED "pubcred"
193 #define KEY_PUBKEY "pubkey"
194 #define KEY_PURSE "purse"
195 #define KEY_RECEIPT "receipt"
196 #define KEY_RECORDBOX "recordbox"
197 #define KEY_EXPIREDBOX "expiredbox"
198 #define KEY_SCRIPT "script"
199 #define KEY_SMARTCONTRACTS "smartcontracts"
200 #define KEY_SPENT "spent"
201 #define KEY_USERACCT "useracct"
206 OTString OTFolders::s_strAccount(
"");
207 OTString OTFolders::s_strCert(
"");
208 OTString OTFolders::s_strContract(
"");
209 OTString OTFolders::s_strCredential(
"");
210 OTString OTFolders::s_strCron(
"");
211 OTString OTFolders::s_strInbox(
"");
212 OTString OTFolders::s_strMarket(
"");
213 OTString OTFolders::s_strMint(
"");
214 OTString OTFolders::s_strNym(
"");
215 OTString OTFolders::s_strNymbox(
"");
216 OTString OTFolders::s_strOutbox(
"");
217 OTString OTFolders::s_strPaymentInbox(
"");
218 OTString OTFolders::s_strPubcred(
"");
219 OTString OTFolders::s_strPubkey(
"");
220 OTString OTFolders::s_strPurse(
"");
221 OTString OTFolders::s_strReceipt(
"");
222 OTString OTFolders::s_strRecordBox(
"");
223 OTString OTFolders::s_strExpiredBox(
"");
224 OTString OTFolders::s_strScript(
"");
225 OTString OTFolders::s_strSmartContracts(
"");
226 OTString OTFolders::s_strSpent(
"");
227 OTString OTFolders::s_strUserAcct(
"");
229 bool OTFolders::GetSetAll()
235 if (!config.Load())
return false;
280 s_strSmartContracts))
288 if (!config.Save())
return false;
297 return GetFolder(s_strAccount);
301 return GetFolder(s_strCert);
305 return GetFolder(s_strContract);
309 return GetFolder(s_strCredential);
313 return GetFolder(s_strCron);
317 return GetFolder(s_strInbox);
321 return GetFolder(s_strMarket);
325 return GetFolder(s_strMint);
329 return GetFolder(s_strNym);
333 return GetFolder(s_strNymbox);
337 return GetFolder(s_strOutbox);
341 return GetFolder(s_strPaymentInbox);
345 return GetFolder(s_strPubcred);
349 return GetFolder(s_strPubkey);
353 return GetFolder(s_strPurse);
357 return GetFolder(s_strReceipt);
361 return GetFolder(s_strRecordBox);
365 return GetFolder(s_strExpiredBox);
369 return GetFolder(s_strScript);
373 return GetFolder(s_strSmartContracts);
377 return GetFolder(s_strSpent);
381 return GetFolder(s_strUserAcct);
static EXPORT const OTString & Mint()
#define DEFAULT_RECORDBOX
static EXPORT const OTString & Pubcred()
#define KEY_SMARTCONTRACTS
static EXPORT const OTString & PaymentInbox()
static EXPORT const OTString & ExpiredBox()
static EXPORT const OTString & Pubkey()
static EXPORT const OTString & Nym()
static EXPORT const OTString & SmartContracts()
static EXPORT const OTString & Inbox()
static EXPORT const OTString & Contract()
static EXPORT const OTString & Nymbox()
static EXPORT const OTString & UserAcct()
static EXPORT const OTString & Credential()
#define DEFAULT_SMARTCONTRACTS
#define DEFAULT_PAYMENTINBOX
static EXPORT const OTString & Receipt()
static EXPORT const OTString & Script()
static EXPORT const OTString & Outbox()
#define DEFAULT_CREDENTIAL
static EXPORT const OTString & Market()
static EXPORT const OTString & Purse()
#define DEFAULT_EXPIREDBOX
static EXPORT const OTString & Cron()
static EXPORT const OTString & Cert()
static EXPORT const OTString & RecordBox()
static EXPORT const OTString & Spent()
static EXPORT const OTString & Account()
static EXPORT const OTString & GlobalConfigFile()