git-svn-id: svn://db.shs.com.ru/pip@228 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
This commit is contained in:
@@ -80,6 +80,8 @@ private:
|
||||
~Remote();
|
||||
void sendFiles(const PIString & dir, const PIStringList & fl) {startAction(Daemon::CopyFiles, dir, fl);}
|
||||
void removeFiles(const PIStringList & fl) {startAction(Daemon::RemoveFiles, PIString(), fl);}
|
||||
void updateDir() {startAction(Daemon::RequestChangeDir, PIString(), PIStringList());}
|
||||
void makeDir(const PIString & dir) {startAction(Daemon::MkDir, dir, PIStringList() << "");}
|
||||
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);}
|
||||
@@ -88,15 +90,20 @@ private:
|
||||
EVENT2(receiveFinished, const PIString & , name, bool, ok)
|
||||
EVENT2(sendFinished, const PIString & , name, bool, ok)
|
||||
EVENT2(removeFinished, const PIString & , name, const PIString & , dir)
|
||||
EVENT2(changeDirFinished, const PIString & , name, const PIString & , dir)
|
||||
EVENT_HANDLER1(void, received, const PIByteArray & , data) {ft.received(data);}
|
||||
|
||||
void startAction(PacketType a, const PIString & dir, const PIStringList & fl);
|
||||
void run();
|
||||
|
||||
PIDir dir_my, dir_remote;
|
||||
PIDir dir_my;
|
||||
PIVector<PIFile::FileInfo> my_filelist;
|
||||
PIFileTransfer ft;
|
||||
PIStringList _fl;
|
||||
PacketType action;
|
||||
|
||||
private:
|
||||
void updateDirEntries();
|
||||
};
|
||||
|
||||
class TileFileProgress: public PIScreenTile {
|
||||
@@ -126,6 +133,7 @@ private:
|
||||
EVENT_HANDLER2(void, timerEvent, void * , _d, int, delim);
|
||||
EVENT_HANDLER2(void, filesReceived, const PIString & , name, bool, ok);
|
||||
EVENT_HANDLER2(void, filesRemoved, const PIString & , name, const PIString & , dir);
|
||||
EVENT_HANDLER2(void, dirChanged, const PIString & , name, const PIString & , dir);
|
||||
EVENT_HANDLER2(void, closeFileDialog, const PIString & , name, bool, ok);
|
||||
EVENT(menuRequest)
|
||||
void hideAll();
|
||||
|
||||
Reference in New Issue
Block a user