BVB Source Codes

mars Show app_logic.h Source code

Return Download mars: download app_logic.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.  * app_logic.h
  15.  *
  16.  *  Created on: 2016/3/3
  17.  *      Author: caoshaokun
  18.  */
  19.  
  20. #ifndef APPCOMM_INTERFACE_APPCOMM_LOGIC_H_
  21. #define APPCOMM_INTERFACE_APPCOMM_LOGIC_H_
  22.  
  23. #include <string>
  24.  
  25. #include "mars/app/app.h"
  26.  
  27. class AutoBuffer;
  28.  
  29. namespace mars {
  30. namespace app {
  31.  
  32.         class Callback {
  33.         public:
  34.                 virtual ~Callback() {};
  35.  
  36.         virtual std::string GetAppFilePath() = 0;
  37.        
  38.                 virtual AccountInfo GetAccountInfo() = 0;
  39.  
  40.                 virtual unsigned int GetClientVersion() = 0;
  41.  
  42.                 virtual DeviceInfo GetDeviceInfo() = 0;
  43.  
  44.         };
  45.  
  46.         void SetCallback(Callback* const callback);
  47. }}
  48.  
  49.  
  50. #endif /* APPCOMM_INTERFACE_APPCOMM_LOGIC_H_ */
  51.  
downloadapp_logic.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