diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2013-03-10 11:49:39 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2013-03-10 11:49:39 +0000 |
commit | 1416051048756ab769de52ab5eb67a31e41524fd (patch) | |
tree | 401f4359adf6784bd46d2a721cc39d8043c2ca31 /plugins/TabSRMM/src/include/sendqueue.h | |
parent | 9f75859a9af7fc3df868cb7b2714c3a19e239b1e (diff) |
removed not used headers
added version info
git-svn-id: http://svn.miranda-ng.org/main/trunk@3952 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TabSRMM/src/include/sendqueue.h')
-rw-r--r-- | plugins/TabSRMM/src/include/sendqueue.h | 123 |
1 files changed, 0 insertions, 123 deletions
diff --git a/plugins/TabSRMM/src/include/sendqueue.h b/plugins/TabSRMM/src/include/sendqueue.h deleted file mode 100644 index 8fdb8205d7..0000000000 --- a/plugins/TabSRMM/src/include/sendqueue.h +++ /dev/null @@ -1,123 +0,0 @@ -/*
-
-Miranda NG: the free IM client for Microsoft* Windows*
-
-Copyright 2000-2009 Miranda ICQ/IM project,
-all portions of this codebase are copyrighted to the people
-listed in contributors.txt.
-
-This program is free software; you can redistribute it and/or
-modify it under the terms of the GNU General Public License
-as published by the Free Software Foundation; either version 2
-of the License, or (at your option) any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program; if not, write to the Free Software
-Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-$Id: sendqueue.h 12065 2010-06-25 17:30:24Z silvercircle $
-
-*/
-
-#ifndef __SENDQUEUE_H
-#define __SENDQUEUE_H
-
-#define TIMERID_MSGSEND 100
-#define TIMERID_TYPE 3
-#define TIMERID_AWAYMSG 4
-//#define TIMERID_TOOLTIP 5
-#define TIMEOUT_TYPEOFF 10000 // send type off after 10 seconds of inactivity
-#define SB_CHAR_WIDTH 45
-#define SEND_FLAGS PREF_UNICODE
-
-/*
- * send flags
- */
-
-#define SENDJOBS_MAX_SENDS 100
-
-struct SendJob {
- HANDLE hSendId;
- char *sendBuffer;
- int dwLen; // actual buffer length (checked for reallocs()
- int iSendLength; // length of message in utf-8 octets (used to check maxlen)
- int sendCount;
- HANDLE hOwner;
- HWND hwndOwner;
- unsigned int iStatus;
- TCHAR szErrorMsg[128];
- DWORD dwFlags;
- int iAcksNeeded;
- HANDLE hEventSplit;
- int chunkSize;
- DWORD dwTime;
-};
-
-class SendQueue {
-public:
- enum {
- NR_SENDJOBS = 30,
- SQ_ERROR = 2,
- SQ_INPROGRESS = 1,
- SQ_UNDEFINED = 0
- };
-
- SendQueue()
- {
- ZeroMemory(m_jobs, (sizeof(SendJob) * NR_SENDJOBS));
- m_currentIndex = 0;
- }
-
- void inc() { m_currentIndex++; }
- void dec() { m_currentIndex--; }
-
- ~SendQueue()
- {
- for (int i = 0; i < NR_SENDJOBS; i++) {
- if (m_jobs[i].sendBuffer)
- free(m_jobs[i].sendBuffer);
- }
- }
-
- SendJob *getJobByIndex(const int index) { return(&m_jobs[index]); }
-
- void clearJob (const int index);
- int findNextFailed (const TWindowData *dat) const;
- void handleError (TWindowData *dat, const int iEntry) const;
- int addTo (TWindowData *dat, const int iLen, int dwFlags);
- int sendQueued (TWindowData *dat, const int iEntry);
- int getSendLength (const int iEntry, const int sendMode);
- void checkQueue (const TWindowData *dat) const;
- void logError (const TWindowData *dat, int iSendJobIndex,
- const TCHAR *szErrMsg) const;
- void recallFailed (const TWindowData *dat, int iEntry) const;
- void showErrorControls (TWindowData *dat, const int showCmd) const;
- int ackMessage (TWindowData *dat, WPARAM wParam, LPARAM lParam);
- int doSendLater (int iIndex, TWindowData *dat, HANDLE hContact = 0, bool fIsSendLater = true);
- /*
- * static members
- */
- static int TSAPI RTL_Detect (const wchar_t *pszwText);
- static char* TSAPI MsgServiceName (const HANDLE hContact, const TWindowData *dat, int isUnicode);
- static int TSAPI GetProtoIconFromList (const char *szProto, int iStatus);
- static LRESULT TSAPI WarnPendingJobs (unsigned int uNrMessages);
- static void TSAPI NotifyDeliveryFailure (const TWindowData *dat);
- static void TSAPI UpdateSaveAndSendButton (TWindowData *dat);
- static void TSAPI EnableSending (const TWindowData *dat, const int iMode);
-private:
- SendJob m_jobs[NR_SENDJOBS];
- int m_currentIndex;
-};
-
-extern SendQueue *sendQueue;
-
-int TSAPI ActivateExistingTab (TContainerData *pContainer, HWND hwndChild);
-void TSAPI ShowMultipleControls (const HWND hwndDlg, const UINT * controls, int cControls, int state);
-void TSAPI HandleIconFeedback (TWindowData *dat, HICON iIcon);
-
-#endif /* __SENDQUEUE_H */
|