diff options
Diffstat (limited to 'plugins/CyrTranslit')
-rw-r--r-- | plugins/CyrTranslit/MirandaContact.cpp | 5 | ||||
-rw-r--r-- | plugins/CyrTranslit/MirandaContact.h | 2 | ||||
-rw-r--r-- | plugins/CyrTranslit/TransliterationProtocol.cpp | 4 | ||||
-rw-r--r-- | plugins/CyrTranslit/TransliterationProtocol.h | 46 |
4 files changed, 28 insertions, 29 deletions
diff --git a/plugins/CyrTranslit/MirandaContact.cpp b/plugins/CyrTranslit/MirandaContact.cpp index ca1f959f4b..0906db3769 100644 --- a/plugins/CyrTranslit/MirandaContact.cpp +++ b/plugins/CyrTranslit/MirandaContact.cpp @@ -54,8 +54,7 @@ MirandaContact::~MirandaContact() void MirandaContact::initialize()
{
- CreateServiceFunction(
- MENU_COMMAND_CALLBACK_SERVICE,onMenuCommandTransliterate);
+ CreateServiceFunction(MENU_COMMAND_CALLBACK_SERVICE,onMenuCommandTransliterate);
generateMenuItemsForAllContacts();
HookEvent(ME_CLIST_PREBUILDCONTACTMENU, onPreBuildContactMenu);
@@ -148,7 +147,7 @@ void MirandaContact::activateTransliterationProtocolForSubscribedContacts() //------------------------------------------------------------------------------
-int MirandaContact::onMenuCommandTransliterate(WPARAM wParam, LPARAM lParam)
+INT_PTR MirandaContact::onMenuCommandTransliterate(WPARAM wParam, LPARAM lParam)
{
HANDLE hContact = reinterpret_cast<HANDLE>(wParam);
if(!CallService(MS_DB_CONTACT_IS, wParam, 0)) return 0;
diff --git a/plugins/CyrTranslit/MirandaContact.h b/plugins/CyrTranslit/MirandaContact.h index 4c0106e972..0e29f3d74e 100644 --- a/plugins/CyrTranslit/MirandaContact.h +++ b/plugins/CyrTranslit/MirandaContact.h @@ -83,7 +83,7 @@ private: * @param lParam hwndContactList
* @return Always returns 0.
*/
- static int onMenuCommandTransliterate(WPARAM wParam, LPARAM lParam);
+ static INT_PTR onMenuCommandTransliterate(WPARAM wParam, LPARAM lParam);
/**
* This is a service name to bind the onMenuCommandTransliterate() method to
diff --git a/plugins/CyrTranslit/TransliterationProtocol.cpp b/plugins/CyrTranslit/TransliterationProtocol.cpp index f6920c465a..b0ba2c12d7 100644 --- a/plugins/CyrTranslit/TransliterationProtocol.cpp +++ b/plugins/CyrTranslit/TransliterationProtocol.cpp @@ -97,7 +97,7 @@ void TransliterationProtocol::TranslateMessageA(WPARAM wParam, LPARAM lParam) strcpy(reinterpret_cast<char*>(ccs->lParam), txt.c_str());
}
-int TransliterationProtocol::sendMessageW(WPARAM wParam, LPARAM lParam)
+INT_PTR TransliterationProtocol::sendMessageW(WPARAM wParam, LPARAM lParam)
{
CCSDATA *ccs = reinterpret_cast<CCSDATA*>(lParam);
LPARAM oldlParam = ccs->lParam;
@@ -113,7 +113,7 @@ int TransliterationProtocol::sendMessageW(WPARAM wParam, LPARAM lParam) }
//------------------------------------------------------------------------------
-int TransliterationProtocol::sendMessageA(WPARAM wParam, LPARAM lParam)
+INT_PTR TransliterationProtocol::sendMessageA(WPARAM wParam, LPARAM lParam)
{
CCSDATA *ccs = reinterpret_cast<CCSDATA*>(lParam);
LPARAM oldlParam = ccs->lParam;
diff --git a/plugins/CyrTranslit/TransliterationProtocol.h b/plugins/CyrTranslit/TransliterationProtocol.h index bc472c4c85..52d9fc0e74 100644 --- a/plugins/CyrTranslit/TransliterationProtocol.h +++ b/plugins/CyrTranslit/TransliterationProtocol.h @@ -31,34 +31,34 @@ namespace CyrTranslit class TransliterationProtocol
{
public:
- /**
- * Initializes this protocol on Miranda start-up.
- */
- static void initialize();
-
- /**
- * A call-back function called when a new outgoing message must be
- * transferred by this protocol.
- *
- * @param wParam flags
- * @param lParam (LPARAM)(const char*)szMessage
- * @return a hProcess corresponding to the one in the ack event.
- */
- static int sendMessageA(WPARAM wParam, LPARAM lParam);
- static int sendMessageW(WPARAM wParam, LPARAM lParam);
+ /**
+ * Initializes this protocol on Miranda start-up.
+ */
+ static void initialize();
+
+ /**
+ * A call-back function called when a new outgoing message must be
+ * transferred by this protocol.
+ *
+ * @param wParam flags
+ * @param lParam (LPARAM)(const char*)szMessage
+ * @return a hProcess corresponding to the one in the ack event.
+ */
+ static INT_PTR sendMessageA(WPARAM wParam, LPARAM lParam);
+ static INT_PTR sendMessageW(WPARAM wParam, LPARAM lParam);
static void TranslateMessageA(WPARAM wParam, LPARAM lParam);
- static void TranslateMessageW(WPARAM wParam, LPARAM lParam);
- static void TranslateMessageUTF(WPARAM wParam, LPARAM lParam);
-
- static void activateForContact(HANDLE hContact);
- static void deactivateForContact(HANDLE hContact);
+ static void TranslateMessageW(WPARAM wParam, LPARAM lParam);
+ static void TranslateMessageUTF(WPARAM wParam, LPARAM lParam);
+
+ static void activateForContact(HANDLE hContact);
+ static void deactivateForContact(HANDLE hContact);
private:
- static char *MODULE_NAME;
+ static char *MODULE_NAME;
- TransliterationProtocol();
- ~TransliterationProtocol();
+ TransliterationProtocol();
+ ~TransliterationProtocol();
};
}
\ No newline at end of file |