PIFile: applyFileInfo
PIPeer: fixed pisd work progress ... git-svn-id: svn://db.shs.com.ru/pip@20 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
This commit is contained in:
@@ -13,6 +13,11 @@ public:
|
||||
Daemon();
|
||||
|
||||
struct HostInfo {
|
||||
HostInfo() {
|
||||
processorsCount = ID = threads = priority = -1;
|
||||
physical_memsize = share_memsize = 0;
|
||||
cpu_load_system = cpu_load_user = 0.;
|
||||
}
|
||||
PIString execCommand;
|
||||
PIString hostname;
|
||||
PIString user;
|
||||
@@ -31,14 +36,15 @@ public:
|
||||
float cpu_load_user;
|
||||
};
|
||||
|
||||
void enable() {enabled = true;}
|
||||
void disable() {enabled = false;}
|
||||
void showMainList() {showTile(list_daemons, "Select daemon");}
|
||||
void showActionList() {showTile(list_actions, "Select action");}
|
||||
|
||||
PIStringList availableDaemons() const;
|
||||
void connectToDaemon(const PIString & dn);
|
||||
void disconnect();
|
||||
|
||||
PIString connectedDaemon() const;
|
||||
PIString thisDaemonName() const {return selfInfo().name.mid(6);}
|
||||
|
||||
PIScreenTile * tile() const;
|
||||
|
||||
@@ -50,9 +56,14 @@ private:
|
||||
|
||||
};
|
||||
|
||||
EVENT_HANDLER2(void, tileEvent, PIScreenTile *, t, PIScreenTypes::TileEvent, e);
|
||||
EVENT_HANDLER1(void, keyEvent, PIKbdListener::KeyEvent, key);
|
||||
EVENT_HANDLER2(void, timerEvent, void * , _d, int, delim);
|
||||
EVENT(menuRequest);
|
||||
void hideAll();
|
||||
void showTile(PIScreenTile * t, const PIString & header = PIString());
|
||||
void fillInfoTile(const HostInfo & hi);
|
||||
void peerConnected(const PIString & name);
|
||||
void peerDisconnected(const PIString & name);
|
||||
void dataReceived(const PIString & from, const PIByteArray & data);
|
||||
void makeMyHostInfo();
|
||||
@@ -69,7 +80,9 @@ private:
|
||||
PIMap<int, PIString> dnames;
|
||||
PISystemMonitor sys_mon_other;
|
||||
HostInfo info_my, info_other;
|
||||
bool enabled;
|
||||
PIScreenTile * tile_root;
|
||||
TileSimple * tile_info, * tile_header;
|
||||
TileList * list_daemons, * list_actions;
|
||||
int mode, offset, cur, height;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user