--- a/vtuis/videotelui/inc/cvtuidtmfbuffer.h Wed Sep 01 12:29:12 2010 +0100
+++ b/vtuis/videotelui/inc/cvtuidtmfbuffer.h Tue Sep 14 21:23:32 2010 +0300
@@ -29,12 +29,28 @@
const TInt KVtUiDTMFBufferSize = 64;
/**
-* TVtUiBaseComponentState
+* MVtUiDTMFBufferObserver
+*
+* Observer of DTMF chaning.
+*/
+
+class MVtUiDTMFBufferObserver
+ {
+public:
+ /*
+ * Buffer changed callback
+ */
+ virtual void NotifyDTMFBufferChangedL() = 0;
+ };
+
+/**
+* CVtUiDTMFBuffer
*
* Base componentstate definition.
*
* @since S60 v5.0
*/
+
class CVtUiDTMFBuffer : public CActive, public MVtUiNumberSource
{
@@ -48,6 +64,14 @@
static CVtUiDTMFBuffer* NewL( const CCoeEnv& aCoeEnv );
/**
+ * Static construction method.
+ * @param aCoeEnv Reference to CoeEnv object.
+ * @param aObserver Pointer to buffer observer
+ * @return Pointer to newly created instance of CVtUiDTMFBuffer.
+ */
+ static CVtUiDTMFBuffer* NewL( const CCoeEnv& aCoeEnv, MVtUiDTMFBufferObserver* aObserver );
+
+ /**
* C++ destructor.
*/
~CVtUiDTMFBuffer();
@@ -99,6 +123,11 @@
* C++ constructor
*/
CVtUiDTMFBuffer( const CCoeEnv& aCoeEnv );
+
+ /**
+ * C++ constructor
+ */
+ CVtUiDTMFBuffer( const CCoeEnv& aCoeEnv, MVtUiDTMFBufferObserver* aObserver );
/**
* 2nd constructor, may leave.
@@ -132,6 +161,9 @@
// DTMF buffer
TBuf< KVtUiDTMFBufferSize > iBuffer;
+
+ // DTMF buffer observer
+ MVtUiDTMFBufferObserver* iObserver;
};