~ubuntu-branches/debian/sid/filezilla/sid

« back to all changes in this revision

Viewing changes to src/include/engineprivate.h

  • Committer: Bazaar Package Importer
  • Author(s): Adam Cécile (Le_Vert)
  • Date: 2008-07-05 21:00:24 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20080705210024-mvzp21zlyheschi6
Tags: 3.0.11.1-1
* wxWidgets 2.8 just entered unstable ! Upload to unstable.
* New upstream release.
* Bump Standards-Version to 3.8.0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
class CControlSocket;
14
14
class CAsyncHostResolver;
15
15
class CLogging;
 
16
class CRateLimiter;
16
17
class CFileZillaEnginePrivate : public wxEvtHandler
17
18
{
18
19
public:
42
43
        void AddNewAsyncHostResolver(CAsyncHostResolver* pThread);
43
44
 
44
45
        void SendDirectoryListingNotification(const CServerPath& path, bool onList, bool modified, bool failed);
45
 
        void SendDisconnectNotification();
 
46
 
 
47
        // If deleting or renaming a directory, it could be possible that another
 
48
        // engine's CControlSocket instance still has that directory as
 
49
        // current working directory (m_CurrentPath)
 
50
        // Since this would cause problems, this function interate over all engines
 
51
        // connected ot the same server and invalidates the current working 
 
52
        // directories if they match or if it is a subdirectory of the changed
 
53
        // directory.
 
54
        void InvalidateCurrentWorkingDirs(const CServerPath& path);
46
55
 
47
56
protected:
48
57
        CFileZillaEnginePrivate();
61
70
        int Rename(const CRenameCommand& command);
62
71
        int Chmod(const CChmodCommand& command);
63
72
 
 
73
        int ContinueConnect();
 
74
 
64
75
        DECLARE_EVENT_TABLE();
65
76
        void OnEngineEvent(wxFzEngineEvent &event);
66
77
        void OnAsyncHostResolver(fzAsyncHostResolveEvent& event);
 
78
        void OnTimer(wxTimerEvent& event);
67
79
 
68
80
        wxEvtHandler *m_pEventHandler;
69
81
 
97
109
        wxCriticalSection m_lock;
98
110
 
99
111
        CLogging* m_pLogging;
 
112
 
 
113
        // Everything related to the retry code
 
114
        // ------------------------------------
 
115
 
 
116
        void RegisterFailedLoginAttempt(const CServer& server);
 
117
 
 
118
        // Get the amount of time to wait till next reconnection attempt in milliseconds
 
119
        unsigned int GetRemainingReconnectDelay(const CServer& server);
 
120
 
 
121
        struct t_failedLogins
 
122
        {
 
123
                wxString host;
 
124
                unsigned int port;
 
125
                wxDateTime time;
 
126
        };
 
127
        static std::list<t_failedLogins> m_failedLogins;
 
128
        int m_retryCount;
 
129
        wxTimer m_retryTimer;
 
130
 
 
131
        CRateLimiter* m_pRateLimiter;
100
132
};
101
133
 
102
134
#endif //__FILEZILLAENGINEPRIVATE_H__