summaryrefslogtreecommitdiff
path: root/protocols/SkypeClassic/src/skypeapi.h
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2013-10-29 08:47:48 +0000
committerRobert Pösel <robyer@seznam.cz>2013-10-29 08:47:48 +0000
commit50421b7809c47bd95c59b4a5627e2f89c8bccfa5 (patch)
tree323784b1c0bb7c86e5df509aab310fa1404680ef /protocols/SkypeClassic/src/skypeapi.h
parent8604516498f9135ac1c4379488228d84e69a89ab (diff)
SkypeClassic: Folders structure and project cleanup
git-svn-id: http://svn.miranda-ng.org/main/trunk@6668 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/SkypeClassic/src/skypeapi.h')
-rw-r--r--protocols/SkypeClassic/src/skypeapi.h69
1 files changed, 69 insertions, 0 deletions
diff --git a/protocols/SkypeClassic/src/skypeapi.h b/protocols/SkypeClassic/src/skypeapi.h
new file mode 100644
index 0000000000..fa4f5139a1
--- /dev/null
+++ b/protocols/SkypeClassic/src/skypeapi.h
@@ -0,0 +1,69 @@
+// Skype API defines
+#define SKYPECONTROLAPI_ATTACH_SUCCESS 0
+#define SKYPECONTROLAPI_ATTACH_PENDING_AUTHORIZATION 1
+#define SKYPECONTROLAPI_ATTACH_REFUSED 2
+#define SKYPECONTROLAPI_ATTACH_NOT_AVAILABLE 3
+#define SKYPECONTROLAPI_ATTACH_API_AVAILABLE 0x8001
+
+#define MISC_ERROR 1
+#define USER_NOT_FOUND 2
+#define USER_NOT_ONLINE 3
+#define USER_BLOCKED 4
+#define TYPE_UNSUPPORTED 5
+#define SENDER_NOT_FRIEND 6
+#define SENDER_NOT_AUTHORIZED 7
+
+#define MAX_ENTRIES 128 // Max. 128 number-Entries in Dial-dlg.
+
+typedef struct {
+ int id;
+ char *szStat;
+} status_map;
+
+// Prototypes
+int SkypeMsgInit(void);
+int SkypeMsgAdd(char *msg);
+void SkypeMsgCleanup(void);
+char *SkypeMsgGet(void);
+int SkypeSend(char*, ...);
+char *SkypeRcv(char *what, DWORD maxwait);
+char *SkypeRcvTime(char *what, time_t st, DWORD maxwait);
+char *SkypeRcvMsg(char *what, time_t st, HANDLE hContact, DWORD maxwait);
+INT_PTR SkypeCall(WPARAM wParam, LPARAM lParam);
+INT_PTR SkypeCallHangup(WPARAM wParam, LPARAM lParam);
+INT_PTR SkypeOutCall(WPARAM wParam, LPARAM lParam);
+INT_PTR SkypeHup(WPARAM wParam, LPARAM lParam);
+INT_PTR SkypeHoldCall(WPARAM wParam, LPARAM lParam);
+void SkypeFlush(void);
+int SkypeStatusToMiranda(char *s);
+char *MirandaStatusToSkype(int id);
+char *GetSkypeErrorMsg(char *str);
+BOOL testfor(char *what, DWORD maxwait);
+int ConnectToSkypeAPI(char *path, BOOL bStart);
+int CloseSkypeAPI(char *skypePath);
+INT_PTR SkypeAdduserDlg(WPARAM wParam, LPARAM lParam);
+INT_PTR SkypeAnswerCall(WPARAM wParam, LPARAM lParam);
+int SkypeMsgCollectGarbage(time_t age);
+INT_PTR SkypeSendFile(WPARAM wParam, LPARAM lParam);
+INT_PTR SkypeSetAvatar(WPARAM wParam, LPARAM lParam);
+INT_PTR SkypeSetAwayMessage(WPARAM wParam, LPARAM lParam);
+INT_PTR SkypeSetAwayMessageW(WPARAM wParam, LPARAM lParam);
+INT_PTR SkypeSetNick(WPARAM wParam, LPARAM lParam);
+INT_PTR SkypeChatCreate(WPARAM wParam, LPARAM lParam);
+int SkypeSetProfile(char *szProperty, char *szValue);
+char *SkypeGet(char *szWhat, char *szWho, char *szProperty);
+char *SkypeGetID(char *szWhat, char *szWho, char *szProperty);
+char *SkypeGetErr(char *szWhat, char *szWho, char *szProperty);
+#ifdef _UNICODE
+WCHAR *SkypeGetW(char *szWhat, WCHAR *szWho, char *szProperty);
+WCHAR *SkypeGetErrW(char *szWhat, TCHAR *szWho, char *szProperty);
+#define SkypeGetT SkypeGetW
+#define SkypeGetErrT SkypeGetErrW
+#else
+#define SkypeGetT SkypeGet
+#define SkypeGetErrT SkypeGetErr
+#endif
+char *SkypeGetProfile(char *szProperty);
+void SetUserNamePassword();
+INT_PTR SkypeAdduserDlg(WPARAM wParam, LPARAM lParam);
+INT_PTR SkypeReceivedAPIMessage(WPARAM wParam, LPARAM lParam);