diff options
author | Vadim Dashevskiy <watcherhd@gmail.com> | 2012-05-15 10:38:20 +0000 |
---|---|---|
committer | Vadim Dashevskiy <watcherhd@gmail.com> | 2012-05-15 10:38:20 +0000 |
commit | 48540940b6c28bb4378abfeb500ec45a625b37b6 (patch) | |
tree | 2ef294c0763e802f91d868bdef4229b6868527de /plugins/helpers/stshelpers.h | |
parent | 5c350913f011e119127baeb32a6aedeb4f0d33bc (diff) |
initial commit
git-svn-id: http://svn.miranda-ng.org/main/trunk@2 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/helpers/stshelpers.h')
-rw-r--r-- | plugins/helpers/stshelpers.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/plugins/helpers/stshelpers.h b/plugins/helpers/stshelpers.h new file mode 100644 index 0000000000..f0fbca8fae --- /dev/null +++ b/plugins/helpers/stshelpers.h @@ -0,0 +1,35 @@ +#ifndef __STSHELPERS__
+#define __STSHELPERS__
+#define PF2_FROMTRIGGER 0x00002000
+#define PF2_CURRENT 0x00001000
+#define PF2_OFFLINE 0x00000800
+#define ID_STATUS_CURRENT 41000
+#define ID_STATUS_FROMTRIGGER 41001
+
+#define MIN_STATUS ID_STATUS_OFFLINE
+#define MAX_STATUS ID_STATUS_OUTTOLUNCH
+
+#define SSIF_DONTSETSTATUS 0x01
+#define SSIF_DONTSETMESSAGE 0x02
+#define SSIF_USEAWAYSYS 0x04
+
+typedef struct {
+ char *szProto;
+ int flags;
+ int status;
+ char *szMsg;
+} SETSTATUSINFO;
+
+// find out whether a proto just changed status
+#define CONNECTIONTIMEOUT 6000 // same value as NewStatusNotify
+// call this...
+int InitProtoStatusChangedHandling();
+// ...if you want to use this
+int ProtoChangedStatus(char *szProto);
+
+int Flag2Status(unsigned long flag); // only if flag is only one status
+unsigned long Status2Flag(int status);
+int Hlp_SetStatus(SETSTATUSINFO *ssi, int count);
+void Hlp_FreeStatusInfo(SETSTATUSINFO *ssi, int count);
+
+#endif
|