diff -r 33a5d2bbf6fc -r 73a1feb507fb mmshplugins/mmshaoplugin/inc/muspropertymonitor.h --- a/mmshplugins/mmshaoplugin/inc/muspropertymonitor.h Thu Aug 19 09:51:39 2010 +0300 +++ b/mmshplugins/mmshaoplugin/inc/muspropertymonitor.h Tue Aug 31 15:12:07 2010 +0300 @@ -21,6 +21,7 @@ #define MUSPROPERTYMONITOR_H #include "musunittesting.h" +#include "mmuscallstateobserver.h" #include #include #include @@ -40,36 +41,35 @@ /** * Two-phased constructor. Leaves on failure. */ - static CMusPropertyMonitor* NewL(); + static CMusPropertyMonitor* NewL( MMusCallStateObserver& aCallStateObserver ); /** * Destructor. */ ~CMusPropertyMonitor(); + + + public: // other public functions + + /* + * Checks from P/S Keys about call state + * @return EFalse if call state is ENoCall otherwise ETrue + */ + TBool IsCallConnected(); + private: /** * C++ constructor. */ - CMusPropertyMonitor(); + CMusPropertyMonitor( MMusCallStateObserver& aCallStateObserve ); /** * Symbian 2nd-phase constructor. */ void ConstructL(); - /** - * Starts Mus Manager Client.In turn it will start Mus Manager - * Server and Availability Plugin. - */ - void StartMusClientL(); - - /* - * Stops Mus Manager Client. - */ - void StopMusClient(); - private: @@ -98,12 +98,12 @@ /** * Instance of RProperty. */ - RProperty iPropertyEvent; - - /** - * Instance of MusManager Client. Owned. + RProperty iPropertyEvent; + + /* + * Reference of callstate observer not owned */ - CMusManager* iManager; + MMusCallStateObserver& iCallStateObserver; MUS_UNITTEST( UT_CMusPropertyMonitor )