BVB Source Codes

mars Show app.h Source code

Return Download mars: download app.h Source code - Download mars Source code - Type:.h
  1. // Tencent is pleased to support the open source community by making Mars available.
  2. // Copyright (C) 2016 THL A29 Limited, a Tencent company. All rights reserved.
  3.  
  4. // Licensed under the MIT License (the "License"); you may not use this file except in
  5. // compliance with the License. You may obtain a copy of the License at
  6. // http://opensource.org/licenses/MIT
  7.  
  8. // Unless required by applicable law or agreed to in writing, software distributed under the License is
  9. // distributed on an "AS IS" basis, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
  10. // either express or implied. See the License for the specific language governing permissions and
  11. // limitations under the License.
  12.  
  13. /*
  14.  * appcomm.h
  15.  *
  16.  *  Created on: 2016骞?鏈?鏃
  17.  *      Author: caoshaokun
  18.  */
  19.  
  20. #ifndef APPCOMM_INTERFACE_APPCOMM_H_
  21. #define APPCOMM_INTERFACE_APPCOMM_H_
  22.  
  23. #include <string>
  24. #include <stdint.h>
  25.  
  26. namespace mars {
  27. namespace app {
  28.  
  29. struct AccountInfo {
  30.         AccountInfo():uin(0), is_logoned(false){}
  31.         int64_t uin;
  32.         std::string username;
  33.         bool is_logoned;
  34. };
  35.  
  36. struct DeviceInfo {
  37.         std::string devicename;
  38.         std::string devicetype;
  39. };
  40.    
  41. extern std::string GetAppFilePath();
  42. extern AccountInfo GetAccountInfo();
  43. extern std::string GetUserName();
  44. extern std::string GetRecentUserName();
  45. extern unsigned int GetClientVersion();
  46. extern DeviceInfo GetDeviceInfo();
  47. }}
  48.  
  49. #endif /* APPCOMM_INTERFACE_APPCOMM_H_ */
  50.  
downloadapp.h 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