14 #ifndef MAGICSMOKE_SC_SCLI_H
15 #define MAGICSMOKE_SC_SCLI_H
24 class QSystemTrayIcon;
43 virtual QList<QPair<QString,QString>>
menuItems()
const;
53 void socketLost(QObject*);
55 void execCmd(
const QString&);
57 void loginSucceeded();
58 void sendNewSessionId();
60 void processLost(
int,QProcess::ExitStatus);
70 QLocalServer*mserver=
nullptr;
71 QList<QLocalSocket*>mconnections;
73 QSystemTrayIcon*micon;
74 bool mhaveslave=
false;
77 void sendMenu(QLocalSocket*);
78 void sendProfiles(QLocalSocket*);
79 void sendSessionInfo(QLocalSocket*);
80 void startBinary(QString);
virtual QString sessionId() const
Definition: sman.cpp:122
virtual QString username() const
Definition: sman.cpp:131
MSessionManager(QObject *parent=0)
Definition: sman.cpp:38
virtual bool isActive() const
Definition: sman.cpp:158
void setUsername(QString)
int connectionCount() const
Definition: sman.h:40
virtual QString profile() const
Definition: sman.cpp:140
void setReady()
Definition: sman.cpp:355
void setPassword(QString)
virtual bool hasSession() const
Definition: sman.cpp:113
static MSessionManager * instance()
Definition: sman.cpp:108
virtual ~MSessionManager()
Definition: sman.cpp:93
bool haveSlave() const
Definition: sman.h:41
virtual QList< QPair< QString, QString > > menuItems() const
Definition: sman.cpp:363
virtual QString profileName() const
Definition: sman.cpp:149