diff options
author | George Hazan <george.hazan@gmail.com> | 2015-06-30 10:04:37 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-06-30 10:04:37 +0000 |
commit | 7cf2491c1a67e31eb8765526d78b1bd4baf6f709 (patch) | |
tree | 32b43210d6d0e8b7e342f36260f4eb85f26c7614 /protocols/IcqOscarJ/src/icq_rates.h | |
parent | d2843de0f8ceebeeb87806bb9670d69f1218619b (diff) |
icq rates - code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@14451 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/IcqOscarJ/src/icq_rates.h')
-rw-r--r-- | protocols/IcqOscarJ/src/icq_rates.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/protocols/IcqOscarJ/src/icq_rates.h b/protocols/IcqOscarJ/src/icq_rates.h index c3c8f560f3..8cdc9243a0 100644 --- a/protocols/IcqOscarJ/src/icq_rates.h +++ b/protocols/IcqOscarJ/src/icq_rates.h @@ -115,9 +115,6 @@ public: char *szUid;
};
-class rates_queue;
-typedef void (rates_queue::*IcqRateFunc)(void);
-
//
// generic item queue (FIFO)
//
@@ -125,21 +122,23 @@ class rates_queue : public MZeroedObject {
CIcqProto *ppro;
const char *szDescr;
- int duplicates;
+ int duplicates;
+ int scheduledDelay;
mir_cs csLists; // we need to be thread safe
LIST<rates_queue_item> lstPending;
protected:
void cleanup();
+ void initDelay(int nDelay);
void processQueue();
- void initDelay(int nDelay, IcqRateFunc delaycode);
public:
rates_queue(CIcqProto *ppro, const char *szDescr, int nLimitLevel, int nWaitLevel, int nDuplicates);
~rates_queue();
void putItem(rates_queue_item *pItem, int nMinDelay);
+ void handleDelay();
int limitLevel; // RML_*
int waitLevel;
|