TimerPool fixoutManipulator
git-svn-id: svn://db.shs.com.ru/pip@78 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
This commit is contained in:
@@ -59,8 +59,9 @@ private:
|
||||
|
||||
ReplyHostInfo = 20,
|
||||
ReplyChangeDir,
|
||||
CopyFiles,
|
||||
|
||||
DataTransfer = 30
|
||||
FileTransfer = 30
|
||||
|
||||
};
|
||||
|
||||
@@ -68,26 +69,41 @@ private:
|
||||
PIOBJECT_SUBCLASS(Remote, PIThread)
|
||||
public:
|
||||
Remote(const PIString & n = PIString());
|
||||
void sendData(const PIByteArray & d) {_d = d; startOnce();}
|
||||
EVENT_HANDLER1(void, ftSendRequest, PIByteArray &, data) {sendRequest(name(), data);}
|
||||
void sendFiles(const PIString & dir, const PIStringList & fl);
|
||||
EVENT_HANDLER1(void, ftSendRequest, PIByteArray &, data) {PIByteArray h; h << int(FileTransfer); data.insert(0, h); sendRequest(name(), data);}
|
||||
EVENT_HANDLER1(void, ftReceived, bool, ok) {receiveFinished(name(), ok);}
|
||||
EVENT_HANDLER1(void, ftSended, bool, ok) {sendFinished(name(), ok);}
|
||||
|
||||
EVENT2(sendRequest, const PIString & , name, const PIByteArray &, data)
|
||||
EVENT2(receiveFinished, const PIString & , name, bool, ok)
|
||||
EVENT2(sendFinished, const PIString & , name, bool, ok)
|
||||
EVENT_HANDLER1(void, received, const PIByteArray & , data) {ft.received(data);}
|
||||
|
||||
PIDir dir_my, dir_remote;
|
||||
PIFileTransfer ft;
|
||||
PIByteArray _d;
|
||||
//void run() {ft.send(_d);}
|
||||
PIStringList _fl;
|
||||
void run();
|
||||
};
|
||||
|
||||
class TileFileProgress: public PIScreenTile {
|
||||
public:
|
||||
TileFileProgress();
|
||||
TileSimple * label_file, * label_speed;
|
||||
TileProgress * prog_file, * prog_all;
|
||||
TileButtons * buttons;
|
||||
PIFileTransfer * ft;
|
||||
void resizeEvent(int w, int h);
|
||||
void sizeHint(int & w, int & h) const;
|
||||
void drawEvent(PIScreenDrawer * d);
|
||||
};
|
||||
|
||||
EVENT_HANDLER2(void, tileEvent, PIScreenTile *, t, PIScreenTypes::TileEvent, e);
|
||||
EVENT_HANDLER1(void, keyEvent, PIKbdListener::KeyEvent, key);
|
||||
EVENT_HANDLER2(void, sendRequest, const PIString & , name, const PIByteArray & , data) {send(name, data);}
|
||||
EVENT_HANDLER1(void, fmKeyEvent, PIKbdListener::KeyEvent, key);
|
||||
EVENT_HANDLER3(void, fmActionRequest, bool, remote_tile, FileManager::Action, type, PIVariant, data);
|
||||
EVENT_HANDLER2(void, timerEvent, void * , _d, int, delim);
|
||||
EVENT_HANDLER1(void, ftSendRequest, PIByteArray &, data);
|
||||
EVENT_HANDLER1(void, ftReceived, bool, ok);
|
||||
EVENT_HANDLER2(void, filesReceived, const PIString & , name, bool, ok);
|
||||
EVENT(menuRequest);
|
||||
void hideAll();
|
||||
void showTile(PIScreenTile * t, const PIString & header = PIString());
|
||||
@@ -116,6 +132,7 @@ private:
|
||||
PIScreenTile * tile_root, * tile_fm;
|
||||
TileSimple * tile_info, * tile_header;
|
||||
TileList * list_daemons, * list_actions;
|
||||
TileFileProgress * tile_file_progress;
|
||||
int mode, offset, cur, height;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user