diff options
author | George Hazan <george.hazan@gmail.com> | 2014-03-04 23:23:45 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-03-04 23:23:45 +0000 |
commit | 15855fa84a09fd1fd486d357c38db0f2bd181e74 (patch) | |
tree | c98d1ae74abca41c776522059343eda13a7e0a31 /plugins/!NotAdopted/HistoryStats/mirandacontact.h | |
parent | 819f8efabea6b0d7d971f9e6e4b21bbc18838874 (diff) |
HistoryStats compiles ok now
git-svn-id: http://svn.miranda-ng.org/main/trunk@8399 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/!NotAdopted/HistoryStats/mirandacontact.h')
-rw-r--r-- | plugins/!NotAdopted/HistoryStats/mirandacontact.h | 146 |
1 files changed, 0 insertions, 146 deletions
diff --git a/plugins/!NotAdopted/HistoryStats/mirandacontact.h b/plugins/!NotAdopted/HistoryStats/mirandacontact.h deleted file mode 100644 index 10f07e6d09..0000000000 --- a/plugins/!NotAdopted/HistoryStats/mirandacontact.h +++ /dev/null @@ -1,146 +0,0 @@ -#if !defined(HISTORYSTATS_GUARD_MIRANDACONTACT_H)
-#define HISTORYSTATS_GUARD_MIRANDACONTACT_H
-
-#include "_globals.h"
-
-#include <vector>
-#include <list>
-
-/*
- * MirandaContact
- */
-
-class MirandaContact
- : private pattern::NotCopyable<MirandaContact>
-{
-public:
- struct EventInfo {
- HANDLE hContact;
- DBEVENTINFO dbe;
- int nAllocated;
-// int nDuplicates;
- };
-
- struct ContactInfo {
- HANDLE hContact;
- HANDLE hEvent;
- EventInfo ei;
- };
-
- typedef std::vector<HANDLE> SourceHandles;
-
-private:
- // general info
- ext::string m_strNick;
- ext::string m_strProtocol;
- ext::string m_strGroup;
- SourceHandles m_Sources;
-
- // internal data
- ext::a::string m_strMetaProto;
-
-protected:
- // reading messages
- std::vector<ContactInfo> m_CIs;
- std::list<EventInfo> m_EIs;
- std::list<EventInfo> m_SpareEIs;
-
-private:
- // reading messages
- void stripMetaID(DBEVENTINFO& dbe);
-
-protected:
- // reading messages
- void fetchSlot(int i);
- virtual void fillQueue() = 0;
-
-public:
- explicit MirandaContact(const ext::string& strNick, const ext::string& strProtocol, const ext::string& strGroup, const SourceHandles& sources);
- virtual ~MirandaContact();
-
- // general info
- const ext::string& getNick() const { return m_strNick; }
- const ext::string& getProtocol() const { return m_strProtocol; }
- const ext::string& getGroup() const { return m_strGroup; }
- const SourceHandles& getSources() const { return m_Sources; }
-
- // merge
- void merge(const MirandaContact& other);
-
- // reading messages
- void beginRead();
- void endRead();
- bool hasNext() { return !m_EIs.empty(); }
- const DBEVENTINFO& getNext() { return m_EIs.front().dbe; }
- void readNext();
-};
-
-/*
- * MirandaContactTolerantMerge
- */
-
-class MirandaContactTolerantMerge
- : private pattern::NotCopyable<MirandaContactTolerantMerge>
- , public MirandaContact
-{
-protected:
- // reading message
- virtual void fillQueue();
-
-public:
- explicit MirandaContactTolerantMerge(const ext::string& strNick, const ext::string& strProtocol, const ext::string& strGroup, const SourceHandles& sources)
- : MirandaContact(strNick, strProtocol, strGroup, sources)
- {
- }
-};
-
-/*
- * MirandaContactStrictMerge
- */
-
-class MirandaContactStrictMerge
- : private pattern::NotCopyable<MirandaContactStrictMerge>
- , public MirandaContact
-{
-protected:
- // reading message
- virtual void fillQueue();
-
-public:
- explicit MirandaContactStrictMerge(const ext::string& strNick, const ext::string& strProtocol, const ext::string& strGroup, const SourceHandles& sources)
- : MirandaContact(strNick, strProtocol, strGroup, sources)
- {
- }
-};
-
-/*
- * MirandaContactNoMerge
- */
-
-class MirandaContactNoMerge
- : private pattern::NotCopyable<MirandaContactNoMerge>
- , public MirandaContact
-{
-protected:
- // reading message
- virtual void fillQueue();
-
-public:
- explicit MirandaContactNoMerge(const ext::string& strNick, const ext::string& strProtocol, const ext::string& strGroup, const SourceHandles& sources)
- : MirandaContact(strNick, strProtocol, strGroup, sources)
- {
- }
-};
-
-/*
- * MirandaContactFactory
- */
-
-class MirandaContactFactory
- : public pattern::NotInstantiable<MirandaContactFactory>
-{
-public:
- static MirandaContact* makeMirandaContact(int MergeMode, const ext::string& strNick, const ext::string& strProtocol, const ext::string& strGroup, const MirandaContact::SourceHandles& sources);
-};
-
-#endif // HISTORYSTATS_GUARD_MIRANDACONTACT_H
|