mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-07 06:02:41 -04:00
RsAccounts::getCurrentAccountId is now static
This commit is contained in:
parent
aa03cc00d3
commit
2c8aa5a1fe
2 changed files with 10 additions and 10 deletions
|
@ -52,14 +52,6 @@ struct RsLoginHelper;
|
|||
extern RsLoginHelper* rsLoginHelper;
|
||||
|
||||
|
||||
class RsAccounts;
|
||||
|
||||
/**
|
||||
* Pointer to global instance of RsAccounts needed to expose JSON API
|
||||
* @jsonapi{development}
|
||||
*/
|
||||
extern RsAccounts* rsAccounts;
|
||||
|
||||
/*!
|
||||
* Initialisation Class (not publicly disclosed to RsIFace)
|
||||
*/
|
||||
|
@ -163,7 +155,7 @@ public:
|
|||
* @param[out] id storage for current account id
|
||||
* @return false if account hasn't been selected yet, true otherwise
|
||||
*/
|
||||
bool getCurrentAccountId(RsPeerId &id);
|
||||
static bool getCurrentAccountId(RsPeerId &id);
|
||||
|
||||
/**
|
||||
* @brief DataDirectory
|
||||
|
@ -224,6 +216,14 @@ private:
|
|||
static RsAccountsDetail* rsAccountsDetails;
|
||||
};
|
||||
|
||||
/**
|
||||
* Pointer to global instance of RsAccounts needed to expose JSON API, as all
|
||||
* the members of this class are static you should call them directly without
|
||||
* using this pointer in the other parts of the code
|
||||
* @jsonapi{development}
|
||||
*/
|
||||
extern RsAccounts* rsAccounts;
|
||||
|
||||
|
||||
/**
|
||||
* This helper class have been implemented because there was not reasonable way
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue