sipxtacklib  Version 3.3
SipLineList.h
Go to the documentation of this file.
1 //
2 // Copyright (C) 2004-2006 SIPfoundry Inc.
3 // Licensed by SIPfoundry under the LGPL license.
4 //
5 // Copyright (C) 2004-2006 Pingtel Corp. All rights reserved.
6 // Licensed to SIPfoundry under a Contributor Agreement.
7 //
8 // $$
10 
11 #if !defined(AFX_SIPLINELIST_H__3822B7DD_69A6_44FC_B936_B75FACC65DC2__INCLUDED_)
12 #define AFX_SIPLINELIST_H__3822B7DD_69A6_44FC_B936_B75FACC65DC2__INCLUDED_
13 
14 // SYSTEM INCLUDES
15 //#include <...>
16 
17 // APPLICATION INCLUDES
18 #include <os/OsLockingList.h>
19 #include <net/SipLine.h>
20 #include <os/OsRWMutex.h>
21 #include <os/OsReadLock.h>
22 #include <os/OsWriteLock.h>
23 
24 // DEFINES
25 // MACROS
26 // EXTERNAL FUNCTIONS
27 // EXTERNAL VARIABLES
28 // CONSTANTS
29 // STRUCTS
30 // TYPEDEFS
31 // FORWARD DECLARATIONS
32 
34 {
35 public:
36  UtlBoolean getDeviceLine(SipLine *line);
37  UtlBoolean linesInArray(int maxSize , int* returnSize, SipLine* Line[]);
38  UtlBoolean linesInArray(int maxSize, int* returnSize, SipLine Line[]);
39 
40  UtlBoolean getFirstLine(SipLine *Line);
41  SipLine* getLine(const Url& identityUrl);
42  SipLine* getLine(const UtlString& lineId);
43  SipLine* getLine(const UtlString& userId, int& numOfMatches);
44 
45  int getListSize() ;
46 
47  UtlBoolean isDuplicate( SipLine* line);
48  UtlBoolean isDuplicate( const Url& lineIdentityUrl );
49 
50  UtlBoolean remove(SipLine* line);
51  UtlBoolean remove(const Url& lineIdentityUrl);
52  void add(SipLine* newLine);
53 
54  SipLine* findLine(const char* lineId,
55  const char* realm,
56  const Url& toFromUrl,
57  const char* userId,
58  const Url& defaultLine) ;
59 
60  SipLineList();
61  virtual ~SipLineList();
62  void dumpLines();
63 
64 protected:
65  OsLockingList m_LineList;
66 };
67 
68 #endif // !defined(AFX_SIPLINELIST_H__3822B7DD_69A6_44FC_B936_B75FACC65DC2__INCLUDED_)
UtlBoolean getDeviceLine(SipLine *line)
Definition: SipLineList.cpp:262
UtlBoolean linesInArray(int maxSize, int *returnSize, SipLine *Line[])
Definition: SipLineList.cpp:222
SipLineList()
Definition: SipLineList.cpp:18
UtlBoolean isDuplicate(SipLine *line)
Definition: SipLineList.cpp:65
OsLockingList m_LineList
Definition: SipLineList.h:65
SipLine * getLine(const Url &identityUrl)
Definition: SipLineList.cpp:95
UtlBoolean getFirstLine(SipLine *Line)
Definition: SipLineList.cpp:245
int getListSize()
Definition: SipLineList.cpp:192
void dumpLines()
Definition: SipLineList.cpp:379
SipLine * findLine(const char *lineId, const char *realm, const Url &toFromUrl, const char *userId, const Url &defaultLine)
Definition: SipLineList.cpp:292
Definition: SipLineList.h:33
URL parser and constructor.
Definition: Url.h:90
Definition: SipLine.h:56
void add(SipLine *newLine)
Definition: SipLineList.cpp:30
virtual ~SipLineList()
Definition: SipLineList.cpp:21

sipXtackLib home page