mmserv/tms/tmsserver/inc/tmscenrepaudiohandler.h
branchRCL_3
changeset 19 095bea5f582e
parent 17 60e492b28869
child 20 0ac9a5310753
equal deleted inserted replaced
18:a36789189b53 19:095bea5f582e
    33  */
    33  */
    34 class TMSCenRepAudioHandler : public TMSPubSubObserver,
    34 class TMSCenRepAudioHandler : public TMSPubSubObserver,
    35                               public TMSCenRepObserver
    35                               public TMSCenRepObserver
    36     {
    36     {
    37 public:
    37 public:
    38     //Constructors and descructor
       
    39 
    38 
    40     /**
    39     /**
    41      * Two-phased constructing for the monitor.
    40      * Two-phased constructing for the monitor.
    42      *
    41      *
    43      * @param aObserver the observer for getting notification
    42      * @param aObserver the observer for getting notification
    72      * @param aVal value
    71      * @param aVal value
    73      */
    72      */
    74     virtual void HandleNotifyCenRepL(const TUid aUid, const TUint32 aKey,
    73     virtual void HandleNotifyCenRepL(const TUid aUid, const TUint32 aKey,
    75             TInt aVal);
    74             TInt aVal);
    76 
    75 
    77 protected:
       
    78     // From CActive
       
    79     /**
       
    80      * From CActive
       
    81      * RunL
       
    82      */
       
    83     void RunL();
       
    84 
       
    85     /**
       
    86      * From CActive
       
    87      * Catches errors if RunL leaves
       
    88      * @param aError error code
       
    89      * @return error code
       
    90      */
       
    91     TInt RunError(TInt aError);
       
    92 
       
    93     /**
       
    94      * From CActive
       
    95      * Cancels the monitor
       
    96      */
       
    97     void DoCancel();
       
    98 
       
    99 private:
    76 private:
   100     /**
    77     /**
   101      * C++ default constructor
    78      * C++ default constructor
   102      * @param aObserver the observer for status change (incoming call)
    79      * @param aObserver the observer for status change (incoming call)
   103      * @param aLine the line associated with the call
    80      * @param aLine the line associated with the call
   109      * Constructs the monitor in the second phase.
    86      * Constructs the monitor in the second phase.
   110      */
    87      */
   111     void ConstructL();
    88     void ConstructL();
   112 
    89 
   113 private:
    90 private:
   114     // data
       
   115 
    91 
   116     /**
    92     /**
   117      * Mute listening from Publish&Subscribe.
    93      * Mute listening from Publish&Subscribe.
   118      */
    94      */
   119     TMSPubSubListener* iMuteListener;
    95     TMSPubSubListener* iMuteListener;
   136     /**
   112     /**
   137      * Call count
   113      * Call count
   138      */
   114      */
   139     TInt iCallCount;
   115     TInt iCallCount;
   140     TMSServer* iTMSSer;
   116     TMSServer* iTMSSer;
       
   117     gboolean iPublish;
   141     };
   118     };
   142 
   119 
   143 } //namespace TMS
   120 } //namespace TMS
   144 
   121 
   145 #endif // TMSCENREPAUDIOHANDLER_H
   122 #endif // TMSCENREPAUDIOHANDLER_H