summaryrefslogtreecommitdiff
path: root/protocols/Omegle/src/proto.h
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-03-28 16:34:30 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-03-28 16:34:30 +0300
commit81ce57622c3166830b23eae534dacc6b008c659d (patch)
tree6d6ac74667f733a20b94fa27cc01c2f45688c533 /protocols/Omegle/src/proto.h
parentc2bb7727483b9b5620e8cc0ce6adae35ee78d0a4 (diff)
common protocol instance management code went into template
Diffstat (limited to 'protocols/Omegle/src/proto.h')
-rw-r--r--protocols/Omegle/src/proto.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/protocols/Omegle/src/proto.h b/protocols/Omegle/src/proto.h
index 4eac66f67e..332746c792 100644
--- a/protocols/Omegle/src/proto.h
+++ b/protocols/Omegle/src/proto.h
@@ -84,11 +84,7 @@ public:
void StopChat(bool disconnect = true);
void NewChat();
- // Contacts handling
- //bool IsMyContact(HANDLE, bool include_chat = false);
-
// Chat handling
- void AddChat(const wchar_t *id, const wchar_t *name);
void UpdateChat(const wchar_t *name, const wchar_t *message, bool addtochat = true);
void SendChatMessage(std::string message);
void AddChatContact(const wchar_t *nick);
@@ -107,3 +103,10 @@ public:
static void CALLBACK APC_callback(ULONG_PTR p);
};
+
+struct CMPlugin : public ACCPROTOPLUGIN<OmegleProto>
+{
+ CMPlugin() :
+ ACCPROTOPLUGIN<OmegleProto>("Omegle")
+ {}
+};