diff options
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;
|