Hotplug partition manager
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

63 lines
1.5 KiB

  1. /*
  2. * annex.h
  3. * Copyright (C) 2021 Aitor Cuadrado Zubizarreta <aitor_czr@gnuinos.org>
  4. *
  5. * This program is free software: you can redistribute it and/or modify it
  6. * under the terms of the GNU General Public License as published by the
  7. * Free Software Foundation, either version 3 of the License, or
  8. * (at your option) any later version.
  9. *
  10. * This program is distributed in the hope that it will be useful, but
  11. * WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  13. * See the GNU General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU General Public License along
  16. * with this program. If not, see <http://www.gnu.org/licenses/>.
  17. *
  18. * See the LICENSE file. *
  19. */
  20. #ifndef __ANNEX_H__
  21. #define __ANNEX_H__
  22. #include <iostream>
  23. #include <vector>
  24. namespace Hopman
  25. {
  26. using namespace std;
  27. class Annex
  28. {
  29. public:
  30. Annex(int, char**, int, int);
  31. virtual ~Annex();
  32. // TODO: make private using getters to access them
  33. int x_screen, y_screen;
  34. vector<string> args;
  35. string mypid,
  36. current_path,
  37. path_to_the_helper,
  38. watch_dir,
  39. socket,
  40. helper_socket,
  41. worker_socket,
  42. app_icon,
  43. eject_icon,
  44. ejected_icon,
  45. warning_icon;
  46. private:
  47. void get_current_path();
  48. void set_pixmaps();
  49. void set_path_to_the_helper();
  50. };
  51. } // namespace Hopman
  52. #endif // __ANNEX_H__