BVB Source Codes

mars Show platform_logic.cpp Source code

Return Download mars: download platform_logic.cpp Source code - Download mars Source code - Type:.cpp
  1.  
  2. #include "../../interface/app.h"
  3. #include "runtime_logic.h"
  4. #include "xlogger.h"
  5. #include "comm\platform_comm.h"
  6. #include "runtime_utils.h"
  7.  
  8. using namespace PublicComponent;
  9. using namespace Platform;
  10.  
  11. std::string getUserNameNoLog()
  12. {
  13.         String^ psUserName = Runtime2Cs_Logic::Singleton()->getUserName();
  14.  
  15.         //std::wstring wsUsername(psUserName->Data());
  16.         std::string sUsername = String2stdstring(psUserName);
  17.         //sUsername.assign(wsUsername.begin(), wsUsername.end());
  18.  
  19.         return sUsername;
  20. }
  21.  
  22. std::string getUserName()
  23. {
  24.         xverbose_function();
  25.  
  26.         std::string userName = getUserNameNoLog();
  27.     xdebug2(TSF"userName= %0", userName);
  28.     return userName;
  29. }
  30.  
  31. //  锟斤拷锟截碉拷前锟矫伙拷锟斤拷锟斤拷锟矫伙拷校锟斤拷锟斤拷锟街帮拷锟铰斤拷锟斤拷歉锟斤拷没锟斤拷锟斤拷锟揭拷锟斤拷乜站涂锟斤拷锟
  32. //wp锟酵凤拷锟截碉拷前username
  33. std::string getRecentUserName()
  34. {
  35.         xverbose_function();
  36.  
  37.         return getUserName();
  38. }
  39.  
  40. unsigned int getClientVersionNoLog()
  41. {
  42.         return Runtime2Cs_Logic::Singleton()->getClientVersion();
  43. }
  44.  
  45. unsigned int getClientVersion()
  46. {
  47.         xverbose_function();
  48.  
  49.         unsigned int clientVersion = getClientVersionNoLog();
  50.  
  51.     xdebug2(TSF"clientVersion= %0", clientVersion);
  52.     return clientVersion;        
  53. }
  54.  
  55.  
  56. AccountInfo getAccountInfo()
  57. {
  58.         xverbose_function();
  59.         AccountInfo accountInfo;
  60.         AccountInfoRef^ inforef = Runtime2Cs_Logic::Singleton()->getAccountInfo();
  61.         if(inforef != nullptr)
  62.         {
  63.                 accountInfo.qquin = inforef->qquin;
  64.             accountInfo.uin = inforef->uin;
  65.             //std::wstring wsUsername(inforef->username->Data());
  66.             accountInfo.username = String2stdstring(inforef->username);
  67.         }
  68.  
  69.         return accountInfo;
  70. }
  71.  
  72. void getUplodLogExtrasInfo(std::string& _extrasinfo)
  73. {
  74.         xverbose_function();
  75.         String^ psExInfo = Runtime2Cs_Logic::Singleton()->getUplodLogExtrasInfo();
  76.        
  77.         //std::wstring wsExinfo2(TSFpsExInfo->Data());
  78.         _extrasinfo = String2stdstring(psExInfo);
  79. }
  80. void getWatchDogPath(std::string& _watchDogPath)
  81. {
  82.         xverbose_function();
  83.         _watchDogPath = getAppFilePath();
  84.         _watchDogPath += "\\watchdog\\";
  85. }
  86. void getKVCommPath(std::string& _kvCommPath)
  87. {
  88.         xverbose_function();
  89.         _kvCommPath = getAppFilePath();
  90.         _kvCommPath += "\\kvcomm\\";
  91. }
  92. void getCrashFilePath(std::string& filePath, int timespan)
  93. {
  94.         xverbose_function();
  95.         String^ psfilePath = Runtime2Cs_Logic::Singleton()->getCrashFilePath(timespan);
  96.        
  97.         //std::wstring wsfilePath(psfilePath->Data());
  98.         filePath = String2stdstring(psfilePath);
  99. }
  100.  
  101. unsigned int getNextNoopTime()
  102. {
  103.         return Runtime2Cs_Logic::Singleton()->getNextNoopTime();
  104. }
  105. unsigned int getNoopInterval()
  106. {
  107.         return Runtime2Cs_Logic::Singleton()->getNoopInterval();
  108. }
  109.  
  110. std::string getDeviceType()
  111. {
  112.         return String2stdstring(Runtime2Cs_Logic::Singleton()->getDeviceType());
  113. }
  114.  
  115. std::string getCurLanguage()
  116. {
  117.         String^ curLanguage = Runtime2Cs_Logic::Singleton()->getCurLanguage();
  118.         return String2stdstring(curLanguage);
  119. }
  120.  
  121. std::string getDeviceInfo()
  122. {
  123.         return "";
  124. }
  125.  
  126.  
downloadplatform_logic.cpp Source code - Download mars Source code
Related Source Codes/Software:
Hero - Elegant transition library for iOS & tvOS 2017-06-09
deep-photo-styletransfer - Code and data for paper "Deep Photo Style Transfer... 2017-06-09
mastodon - A GNU Social-compatible microblogging server ... 2017-06-09
plyr - A simple HTML5, YouTube and Vimeo player ... 2017-06-08
prepack - Prepack is a partial evaluator for JavaScript. Pre... 2017-06-08
Public-APIs - 2017-06-09
lottie-ios - An iOS library to natively render After Effects ve... 2017-06-09
Awesome-Hacking - A collection of various awesome lists for hackers,... 2017-06-09
algorithms - Minimal examples of data structures and algorithms... 2017-06-10
lectures - Oxford Deep NLP 2017 course 2017-06-10
CRYENGINE - CRYENGINE is a powerful real-time game development... 2017-06-11
postal - 2017-06-11
reactide - Reactide is the first dedicated IDE for React web ... 2017-06-11
rkt - rkt is a pod-native container engine for Linux. It... 2017-06-11
uWebSockets - Tiny WebSockets https://for... 2017-06-11
realworld - TodoMVC for the RealWorld - Exemplary fullstack Me... 2017-06-11
goreplay - GoReplay is an open-source tool for capturing and ... 2017-06-10
pyenv - Simple Python version management 2017-06-10
redux-saga - An alternative side effect model for Redux apps ... 2017-06-10
angular-starter - 2017-06-10

 Back to top