[go: up one dir, main page]

Menu

[r427]: / toucan / trunk / sync.h  Maximize  Restore  History

Download this file

40 lines (30 with data), 893 Bytes

 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
/////////////////////////////////////////////////////////////////////////////////
// Author: Steven Lamerton
// Copyright: Copyright (C) 2006-2008 Steven Lamerton
// License: GNU GPL 2 (See readme for more info)
/////////////////////////////////////////////////////////////////////////////////
#ifndef H_SYNC
#define H_SHYC
#include <wx/thread.h>
#include "syncdata.h"
class SyncThread : public wxThread
{
public:
//Constructor
SyncThread(SyncData data, Rules rules, frmMain *main):wxThread(){
m_Data = data;
m_Rules = rules;
m_Main = main;
}
//Main function, all stuff goes in here
virtual void *Entry();
private:
SyncData m_Data;
Rules m_Rules;
frmMain* m_Main;
};
bool SyncLoop(SyncData data, Rules rules);
bool SyncFile(SyncData data, Rules rules);
bool DirectoryRemove(wxString strLocation);
bool FolderTimeLoop(wxString strFrom, wxString strTo);
#endif