mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-14 12:02:29 -04:00
Added new libretroshare interface for switching between Operating Mode.
This is so people can use RS in limited bandwidth or background modes. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5887 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
fd723bcea7
commit
696e7735a1
3 changed files with 124 additions and 0 deletions
|
@ -84,10 +84,19 @@ virtual uint32_t getConnectModes();
|
|||
virtual bool getConfigurationOption(uint32_t key, std::string &opt);
|
||||
virtual bool setConfigurationOption(uint32_t key, const std::string &opt);
|
||||
|
||||
/* Operating Mode */
|
||||
virtual uint32_t getOperatingMode();
|
||||
virtual bool setOperatingMode(uint32_t opMode);
|
||||
|
||||
virtual int SetDataRates( int downKb, int upKb );
|
||||
virtual int GetDataRates( float &inKb, float &outKb );
|
||||
|
||||
/********************* ABOVE is RsConfig Interface *******/
|
||||
|
||||
private:
|
||||
|
||||
bool switchToOperatingMode(uint32_t opMode);
|
||||
|
||||
bool findConfigurationOption(uint32_t key, std::string &keystr);
|
||||
|
||||
p3PeerMgr *mPeerMgr;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue