Advertisement
qberik

MyConMenu/CMenu.h

Feb 19th, 2022
306
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. #ifndef MYMENU_CMENU_H
  2. #define MYMENU_CMENU_H
  3.  
  4. #include "CMenuItem.h"
  5. #include <cstddef>
  6.  
  7. namespace XXX {
  8. class CMenu {
  9. public:
  10. CMenu(char *, CMenuItem *, size_t);
  11. int getSelect() const;
  12. bool isRun() const;
  13. char *getTitle();
  14. size_t getCount() const;
  15. CMenuItem *getItems();
  16. void print();
  17. int runCommand();
  18.  
  19. private:
  20. int m_select{-1};
  21. size_t m_count{};
  22. bool m_running{};
  23. char *m_title{};
  24. CMenuItem *m_items{};
  25. };
  26. }
  27.  
  28. #endif //MYMENU_CMENU_H
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement