sipxmediaadapterlib  Version 3.3
MiProgressNotf.h
Go to the documentation of this file.
1 //
2 // Copyright (C) 2007 SIPez LLC.
3 // Licensed to SIPfoundry under a Contributor Agreement.
4 //
5 // Copyright (C) 2007 SIPfoundry Inc.
6 // Licensed by SIPfoundry under the LGPL license.
7 //
8 // $$
10 
11 // Author: Keith Kyzivat <kkyzivat AT SIPez DOT com>
12 
13 #ifndef _MiProgressNotf_h_
14 #define _MiProgressNotf_h_
15 
16 // SYSTEM INCLUDES
17 
18 // APPLICATION INCLUDES
19 #include "os/OsMsg.h"
20 #include "utl/UtlString.h"
21 #include "mi/MiNotification.h"
22 
23 // DEFINES
24 // MACROS
25 // EXTERNAL FUNCTIONS
26 // EXTERNAL VARIABLES
27 // CONSTANTS
28 // STRUCTS
29 // TYPEDEFS
30 // FORWARD DECLARATIONS
31 
34 {
35  /* //////////////////////////// PUBLIC //////////////////////////////////// */
36 public:
37 
38  /* ============================ CREATORS ================================== */
40 
41 
43  MiProgressNotf(const UtlString& sourceId,
44  unsigned posMS, unsigned totalMS);
45 
47  MiProgressNotf(const MiProgressNotf& rNotf);
48 
50  virtual OsMsg* createCopy(void) const;
51 
53  virtual ~MiProgressNotf();
54 
56 
57  /* ============================ MANIPULATORS ============================== */
59 
60 
63 
65  void setPositionMS(unsigned posMS);
66 
68  void setTotalMS(unsigned totalMS);
69 
71 
72  /* ============================ ACCESSORS ================================= */
74 
75 
77  unsigned getPositionMS(void) const;
78 
80  unsigned getTotalMS(void) const;
81 
83 
84  /* ============================ INQUIRY =================================== */
86 
87 
89 
90  /* //////////////////////////// PROTECTED ///////////////////////////////// */
91 protected:
92 
93  /* //////////////////////////// PRIVATE /////////////////////////////////// */
94 private:
95  unsigned mCurPositionMS;
96  unsigned mTotalMS;
97 };
98 
99 /* ============================ INLINE METHODS ============================ */
100 
101 #endif // _MiProgressNotf_h_
MiProgressNotf(const UtlString &sourceId, unsigned posMS, unsigned totalMS)
Constructor.
Definition: MiProgressNotf.cpp:30
unsigned getPositionMS(void) const
Get the current reported position of this progress update in MS.
Definition: MiProgressNotf.cpp:90
unsigned mCurPositionMS
current position reported, in milliseconds.
Definition: MiProgressNotf.h:95
MiProgressNotf & operator=(const MiProgressNotf &rhs)
Assignment operator.
Definition: MiProgressNotf.cpp:62
void setPositionMS(unsigned posMS)
Set the position in milliseconds this message reports.
Definition: MiProgressNotf.cpp:76
virtual ~MiProgressNotf()
Destructor.
Definition: MiProgressNotf.cpp:53
void setTotalMS(unsigned totalMS)
Set the total size of the buffer in milliseconds this message reports.
Definition: MiProgressNotf.cpp:82
Message notification class used to communicate media notification events.
Definition: MiNotification.h:42
unsigned getTotalMS(void) const
Get the total size of the buffer in milliseconds this message reports.
Definition: MiProgressNotf.cpp:96
unsigned mTotalMS
Total size in milliseconds.
Definition: MiProgressNotf.h:96
Message notification class used to communicate DTMF signaling.
Definition: MiProgressNotf.h:33
virtual OsMsg * createCopy(void) const
Create a copy of this msg object (which may be of a derived type)
Definition: MiProgressNotf.cpp:47