sipxportlib  Version 3.3
OsContactList.h
Go to the documentation of this file.
1 //
2 // Copyright (C) 2006 Pingtel Corp.
3 //
4 //
5 // $$
8 
9 
10 #ifndef _OsContactList_h_
11 #define _OsContactList_h_
12 
13 // SYSTEM INCLUDES
14 // APPLICATION INCLUDES
15 #include "utl/UtlSList.h"
16 #include "os/OsContact.h"
17 
18 // DEFINES
19 // MACROS
20 // EXTERNAL FUNCTIONS
21 // EXTERNAL VARIABLES
22 // CONSTANTS
23 // STRUCTS
24 // TYPEDEFS
25 // FORWARD DECLARATIONS
26 class UtlContainable;
27 
36 class OsContactList : public UtlSList
37 {
38 /* //////////////////////////// PUBLIC //////////////////////////////////// */
39 public:
40 
41 /* ============================ FRIENDS =================================== */
42  friend class OsContactListTest;
43 
44 /* ============================ CREATORS ================================== */
45 
46 
50  OsContactList();
51 
52 /* ============================ MANIPULATORS ============================== */
53 
61  void setPrimary(const OsContact& contact);
62 
63 /* ============================ INQUIRY =================================== */
64 
70  const OsContact* getPrimary();
71 
72 
76  virtual UtlContainableType getContainableType() const;
77 
78 /* //////////////////////////// PROTECTED ///////////////////////////////// */
79 protected:
80  friend class UtlSListIterator;
81 
82 
83  static const UtlContainableType TYPE;
84 
85 /* //////////////////////////// PRIVATE /////////////////////////////////// */
86 private:
87 
88 } ;
89 
90 /* ============================ INLINE METHODS ============================ */
91 
92 #endif // _OsContactList_h_
93 
94 
Definition: UtlSListIterator.h:37
static const UtlContainableType TYPE
Definition: OsContactList.h:83
const OsContact * getPrimary()
Definition: OsContactList.cpp:53
Definition: OsContact.h:45
const char *const UtlContainableType
Definition: UtlDefs.h:70
friend class OsContactListTest
Definition: OsContactList.h:42
Definition: UtlContainable.h:37
void setPrimary(const OsContact &contact)
Definition: OsContactList.cpp:44
Definition: UtlSList.h:47
OsContactList()
Definition: OsContactList.cpp:28
virtual UtlContainableType getContainableType() const
Definition: OsContactList.cpp:39
Definition: OsContactList.h:36