base_logic.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  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. // Licensed under the MIT License (the "License"); you may not use this file except in
  4. // compliance with the License. You may obtain a copy of the License at
  5. // http://opensource.org/licenses/MIT
  6. // Unless required by applicable law or agreed to in writing, software distributed under the License is
  7. // distributed on an "AS IS" basis, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
  8. // either express or implied. See the License for the specific language governing permissions and
  9. // limitations under the License.
  10. /*
  11. * baseprj.h
  12. *
  13. * Created on: 2014-7-7
  14. * Author: yerungui
  15. */
  16. #ifndef MARS_BASELOGIC_H_
  17. #define MARS_BASELOGIC_H_
  18. #include <stdint.h>
  19. namespace mars{
  20. namespace baseevent{
  21. void OnCreate();
  22. void OnDestroy();
  23. void OnSingalCrash(int _sig);
  24. void OnExceptionCrash();
  25. void OnForeground(bool _isforeground);
  26. void OnNetworkChange();
  27. void OnNetworkDataChange(const char* _tag, int32_t _send, int32_t _recv);
  28. }
  29. }
  30. #endif /* MARS_BASELOGIC_H_ */