globals_qobjects.h 4.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. /************************************************************************
  2. * file name : globals_qobjects.h
  3. * ----------------- :
  4. * creation time : 2016/08/08
  5. * authors : Victor Zarubkin, Sergey Yagovtsev
  6. * email : [email protected], [email protected]
  7. * ----------------- :
  8. * description : The file contains declaration of EasyGlobalSignals QObject class.
  9. * ----------------- :
  10. * change log : * 2016/08/08 Sergey Yagovtsev: moved sources from globals.h
  11. * :
  12. * : *
  13. * ----------------- :
  14. * license : Lightweight profiler library for c++
  15. * : Copyright(C) 2016-2017 Sergey Yagovtsev, Victor Zarubkin
  16. * :
  17. * : Licensed under either of
  18. * : * MIT license (LICENSE.MIT or http://opensource.org/licenses/MIT)
  19. * : * Apache License, Version 2.0, (LICENSE.APACHE or http://www.apache.org/licenses/LICENSE-2.0)
  20. * : at your option.
  21. * :
  22. * : The MIT License
  23. * :
  24. * : Permission is hereby granted, free of charge, to any person obtaining a copy
  25. * : of this software and associated documentation files (the "Software"), to deal
  26. * : in the Software without restriction, including without limitation the rights
  27. * : to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
  28. * : of the Software, and to permit persons to whom the Software is furnished
  29. * : to do so, subject to the following conditions:
  30. * :
  31. * : The above copyright notice and this permission notice shall be included in all
  32. * : copies or substantial portions of the Software.
  33. * :
  34. * : THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
  35. * : INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
  36. * : PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
  37. * : LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
  38. * : TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
  39. * : USE OR OTHER DEALINGS IN THE SOFTWARE.
  40. * :
  41. * : The Apache License, Version 2.0 (the "License")
  42. * :
  43. * : You may not use this file except in compliance with the License.
  44. * : You may obtain a copy of the License at
  45. * :
  46. * : http://www.apache.org/licenses/LICENSE-2.0
  47. * :
  48. * : Unless required by applicable law or agreed to in writing, software
  49. * : distributed under the License is distributed on an "AS IS" BASIS,
  50. * : WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  51. * : See the License for the specific language governing permissions and
  52. * : limitations under the License.
  53. ************************************************************************/
  54. #ifndef EASY_GLOBALS_QOBJECTS_H
  55. #define EASY_GLOBALS_QOBJECTS_H
  56. #include <QObject>
  57. #include <easy/profiler.h>
  58. namespace profiler_gui {
  59. class EasyGlobalSignals Q_DECL_FINAL : public QObject
  60. {
  61. Q_OBJECT
  62. public:
  63. EasyGlobalSignals();
  64. virtual ~EasyGlobalSignals();
  65. signals:
  66. void selectedThreadChanged(::profiler::thread_id_t _id);
  67. void selectedBlockChanged(uint32_t _block_index);
  68. void selectedBlockIdChanged(::profiler::block_id_t _id);
  69. void itemsExpandStateChanged();
  70. void blockStatusChanged(::profiler::block_id_t _id, ::profiler::EasyBlockStatus _status);
  71. void connectionChanged(bool _connected);
  72. void blocksRefreshRequired(bool);
  73. void expectedFrameTimeChanged();
  74. void autoAdjustHistogramChanged();
  75. void displayOnlyFramesOnHistogramChanged();
  76. void hierarchyFlagChanged(bool);
  77. void threadNameDecorationChanged();
  78. void hexThreadIdChanged();
  79. void refreshRequired();
  80. void blocksTreeModeChanged();
  81. }; // END of class EasyGlobalSignals.
  82. } // END of namespace profiler_gui.
  83. #endif // EASY_GLOBALS_QOBJECTS_H