[prev in list] [next in list] [prev in thread] [next in thread]
List: licq-cvs
Subject: [Licq-cvs] licq/include
From: Jon Keating <emostar () users ! sourceforge ! net>
Date: 2004-05-27 7:00:29
Message-ID: E1BTEsP-0006cP-OG () sc8-pr-cvs1 ! sourceforge ! net
[Download RAW message or body]
Update of /cvsroot/licq/licq/include
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25344/include
Modified Files:
licq_events.h licq_icqd.h licq_message.h
Log Message:
Fixed a few crashes:
* Users of other protocols having their groups changed (disabled now)
* Unloading of protocol plugins (fixed)
Added to protocol plugin API:
* Granting authorization to users
* Refusing authorization to users
Index: licq_events.h
===================================================================
RCS file: /cvsroot/licq/licq/include/licq_events.h,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -d -r1.31 -r1.32
--- licq_events.h 7 May 2004 15:26:55 -0000 1.31
+++ licq_events.h 27 May 2004 07:00:23 -0000 1.32
@@ -443,7 +443,13 @@
PROTOxSENDxMSG,
//! The user has started typing and wants to let the remote user know about
//! about it.
- PROTOxSENDxTYPING_NOTIFICATION
+ PROTOxSENDxTYPING_NOTIFICATION,
+ //! The user granted authorization for a user to add them to his
+ //! contact list.
+ PROTOxSENDxGRANTxAUTH,
+ //! The user refused authorization for a user to add them to his
+ //! contact list.
+ PROTOxSENDxREFUSExAUTH
};
//! The class that gets passed to protocol plugins when a signal
@@ -543,5 +549,26 @@
bool m_bActive;
};
+class CGrantAuthSignal : public CSignal
+{
+public:
+ CGrantAuthSignal(const char *, const char *);
+ virtual ~CGrantAuthSignal() { if (m_szMsg) free(m_szMsg); }
+ char *Message() { return m_szMsg; }
+
+private:
+ char *m_szMsg;
+};
+
+class CRefuseAuthSignal : public CSignal
+{
+public:
+ CRefuseAuthSignal(const char *, const char *);
+ virtual ~CRefuseAuthSignal() { if (m_szMsg) free(m_szMsg); }
+
+private:
+ char *m_szMsg;
+};
+
#endif
Index: licq_icqd.h
===================================================================
RCS file: /cvsroot/licq/licq/include/licq_icqd.h,v
retrieving revision 1.69
retrieving revision 1.70
diff -u -d -r1.69 -r1.70
--- licq_icqd.h 7 May 2004 15:26:55 -0000 1.69
+++ licq_icqd.h 27 May 2004 07:00:24 -0000 1.70
@@ -194,6 +194,12 @@
unsigned long nMsgID[], bool bDirect);
void ProtoChatRequestCancel(const char *szId, unsigned long nPPID,
unsigned long nSequence);
+
+ unsigned long ProtoAuthorizeGrant(const char *szId, unsigned long nPPID,
+ const char *szMessage);
+
+ unsigned long ProtoAuthorizeRefuse(const char *szId, unsigned long nPPID,
+ const char *szMessage);
// TCP (user) functions
// Message
@@ -317,7 +323,9 @@
void postLogoff(int nSD, ICQEvent *cancelledEvent);
void icqRelogon();
unsigned long icqAuthorizeGrant(unsigned long nUin, const char *szMessage);
+ unsigned long icqAuthorizeGrant(const char *szId, const char *szMessage);
unsigned long icqAuthorizeRefuse(unsigned long nUin, const char *szMessage);
+ unsigned long icqAuthorizeRefuse(const char *szId, const char *szMessage);
void icqRequestAuth(unsigned long _nUin, const char *_szMessage);
void icqAlertUser(unsigned long _nUin);
void icqAddUser(unsigned long _nUin, bool _bAuthReq = false);
Index: licq_message.h
===================================================================
RCS file: /cvsroot/licq/licq/include/licq_message.h,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- licq_message.h 18 Feb 2004 17:48:27 -0000 1.16
+++ licq_message.h 27 May 2004 07:00:24 -0000 1.17
@@ -10,6 +10,7 @@
typedef std::list<const char *> ConstFileList;
+#define LICQ_PPID 0x4C696371 // "Licq"
#define EVENT_HEADER_SIZE 80
// Define some event flags, leave the 2 LSB's for the licq version
@@ -60,7 +61,7 @@
protected:
virtual void AddToHistory(ICQUser *, direction) = 0;
int AddToHistory_Header(direction, char *);
- void AddToHistory_Flush(ICQUser *, char *);
+ void AddToHistory_Flush(ICQUser *, char *, unsigned long = LICQ_PPID);
void SetDirection(direction d) { m_eDir = d; }
void Cancel() { m_nFlags |= E_CANCELLED; }
-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
Licq-cvs mailing list
Licq-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/licq-cvs
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic