sipXcallLib home page


LinePresenceBase.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 #ifndef _LinePresenceBase_h_
12 #define _LinePresenceBase_h_
13 
14 // SYSTEM INCLUDES
15 // APPLICATION INCLUDES
16 // DEFINES
17 // MACROS
18 // EXTERNAL FUNCTIONS
19 // EXTERNAL VARIABLES
20 // CONSTANTS
21 // STRUCTS
22 // TYPEDEFS
23 // FORWARD DECLARATIONS
24 class Url;
25 
31 /* //////////////////////////// PUBLIC //////////////////////////////////// */
32 public:
39  PRESENT = 1,
40  ON_HOOK = 2,
41  SIGNED_IN = 4
42  };
43 
44 
45 /* ============================ CREATORS ================================== */
46 
51 
55  virtual ~LinePresenceBase() {}
56 
57 /* ============================ MANIPULATORS ============================== */
65  virtual void updateState(ePresenceStateType type, bool state) = 0;
66 
67 /* ============================ ACCESSORS ================================= */
71  virtual Url* getUri(void) = 0;
72 
76  virtual bool getState(ePresenceStateType type) = 0;
77 
78 /* ============================ INQUIRY =================================== */
79 
80 /* //////////////////////////// PROTECTED ///////////////////////////////// */
81 protected:
82 
83 /* //////////////////////////// PRIVATE /////////////////////////////////// */
84 private:
85 
86 };
87 
88 #endif // _LinePresenceBase_h_
89 
The LinePresenceBase class provides a set of pure virtual interfaces which allow for the setting and ...
Definition: LinePresenceBase.h:30
LinePresenceBase(void)
Default constructor.
Definition: LinePresenceBase.h:50
on/off hook state
Definition: LinePresenceBase.h:40
virtual void updateState(ePresenceStateType type, bool state)=0
Update the presence / line state for this line.
virtual bool getState(ePresenceStateType type)=0
Return the presence / line state information for this line.
virtual ~LinePresenceBase()
Destructor.
Definition: LinePresenceBase.h:55
ACD SIGNED-IN state.
Definition: LinePresenceBase.h:41
present state
Definition: LinePresenceBase.h:39
virtual Url * getUri(void)=0
Return the AOR for this line.
ePresenceStateType
Line Presence state type enumerations.
Definition: LinePresenceBase.h:38