-
Notifications
You must be signed in to change notification settings - Fork 0
/
screen.h
40 lines (34 loc) · 859 Bytes
/
screen.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#include <sys/types.h>
#include <unistd.h>
#include <string>
#include <sstream>
#include <vector>
class Screen
{
public:
Screen (bool);
void setStatus (bool);
bool getStatus ();
pid_t getPid();
void setPid(pid_t);
std::string getFilename();
void createScreenFilename();
std::string getScreenName();
// Variaveis estaticas
static std::vector <Screen*> activeScreens;
// Metodos estaticos
static Screen getActiveScreen ();
static void listScreens ();
static void deactivateAllScreens ();
static void killAllScreens ();
static bool activateScreen (std::string);
static bool removeScreen (std::string);
private:
pid_t pid;
bool active;
std::string filename;
std::string screenName;
static unsigned nextId;
unsigned screenId;
static Screen* activeScreen;
};