forked from alcacoop/sipxpcom
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathnsSIP.h
More file actions
40 lines (34 loc) · 941 Bytes
/
nsSIP.h
File metadata and controls
40 lines (34 loc) · 941 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "pjsip.h"
#include "nsCOMPtr.h"
#include "nsIArray.h"
#include "nsIMutableArray.h"
#include "nsWeakPtr.h"
#include "nsServiceManagerUtils.h"
#include "nsComponentManagerUtils.h"
#include "nsIProxyObjectManager.h"
#include "nsISupports.h"
#include "nsXPCOMCIDInternal.h"
#include "pjsip.h"
#include "nsISIP.h"
#define SIP_CONTRACTID "@alcacoop.it/sip;1"
#define SIP_CLASSNAME "Simple XPCOM SIP stack"
#define SIP_CID { 0xc5bf5079, 0x8bc3, 0x4fc5, { 0x88, 0x1f, 0xf3, 0xbd, 0x85, 0xa6, 0x3c, 0x61 } }
class nsSIP : public nsISIP
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSISIP
nsSIP();
private:
long port;
~nsSIP();
void getProxyForObserver(nsCOMPtr<nsSipStateObserver>, nsCOMPtr<nsSipStateObserver>*);
void CallObservers(const char* status);
void FlushObservers();
protected:
nsCOMPtr<nsIMutableArray> mObservers;
nsCOMPtr<nsIMutableArray> proxy;
};