radioapp/radioenginewrapper/inc/radioenginewrapper_p.h
branchGCC_SURGE
changeset 37 451b2e1545b2
parent 19 afea38384506
parent 32 189d20c34778
equal deleted inserted replaced
26:6bcf277166c1 37:451b2e1545b2
    26 // User includes
    26 // User includes
    27 #include "radioenginewrapper.h"
    27 #include "radioenginewrapper.h"
    28 #include "mradioenginehandlerobserver.h"
    28 #include "mradioenginehandlerobserver.h"
    29 
    29 
    30 // Forward declarations
    30 // Forward declarations
    31 class CRadioEngineHandler;
    31 class RadioEngineHandler;
    32 class RadioControlEventListener;
    32 class RadioControlEventListener;
    33 class RadioRdsListener;
    33 class RadioRdsListener;
    34 class RadioSettingsIf;
    34 class RadioSettingsIf;
    35 class RadioSettings;
    35 class RadioSettings;
    36 class RadioStationHandlerIf;
    36 class RadioStationHandlerIf;
    61     virtual ~RadioEngineWrapperPrivate();
    61     virtual ~RadioEngineWrapperPrivate();
    62 
    62 
    63     /**
    63     /**
    64      * Initialization and startup
    64      * Initialization and startup
    65      */
    65      */
    66     void init();
    66     bool init();
    67     bool isEngineConstructed();
       
    68 
    67 
    69     /**
    68     /**
    70      * Returns the radio settings
    69      * Returns the radio settings
    71      */
    70      */
    72     RadioSettingsIf& settings();
    71     RadioSettingsIf& settings();
    73 
    72 
    74     /**
    73     /**
    75     * Getter for CRadioEngineHandler instance.
    74     * Getter for CRadioEngineHandler instance.
    76     * Returns reference to the CRadioEngineHandler
    75     * Returns reference to the CRadioEngineHandler
    77     */
    76     */
    78     CRadioEngineHandler& RadioEnginehandler();
    77     RadioEngineHandler& radioEnginehandler();
    79 
    78 
    80     /**
    79     /**
    81      * Functions called from slots to tune to given frequency or preset
    80      * Tunes to given frequency
    82      */
    81      */
    83     void tuneFrequency( uint frequency, const int reason );
    82     void setFrequency( uint frequency, const int reason );
    84     void tuneWithDelay( uint frequency, const int reason );
       
    85 
    83 
    86     ObserverList& observers();
    84     ObserverList& observers();
    87 
    85 
    88     void startSeeking( Seeking::Direction direction, const int reason = TuneReason::Unspecified );
    86     void startSeeking( Seek::Direction direction, const int reason = TuneReason::Unspecified );
    89 
    87 
    90 private:
    88 private:
    91 
    89 
    92 // from base class MRadioEngineObserver
    90 // from base class MRadioEngineObserver
    93 
    91 
   107     void AudioRouteChangedL( RadioEngine::TRadioAudioRoute aRoute );
   105     void AudioRouteChangedL( RadioEngine::TRadioAudioRoute aRoute );
   108 
   106 
   109 // from base class MRadioSystemEventObserver
   107 // from base class MRadioSystemEventObserver
   110 
   108 
   111     void HandleSystemEventL( TRadioSystemEventType aEventType );
   109     void HandleSystemEventL( TRadioSystemEventType aEventType );
   112 
       
   113 // from base class MRadioRepositoryEntityObserver
       
   114 
       
   115     void HandleRepositoryValueChangeL( const TUid& aUid, TUint32 aKey, TInt aValue, TInt aError );
       
   116     void HandleRepositoryValueChangeL( const TUid& /*aUid*/, TUint32 /*aKey*/, const TReal& /*aValue*/, TInt /*aError*/ ) {}
       
   117     void HandleRepositoryValueChangeL( const TUid& /*aUid*/, TUint32 /*aKey*/, const TDesC8& /*aValue*/, TInt /*aError*/ ) {}
       
   118     void HandleRepositoryValueChangeL( const TUid& /*aUid*/, TUint32 /*aKey*/, const TDesC16& /*aValue*/, TInt /*aError*/ ) {}
       
   119 
   110 
   120 private: // data
   111 private: // data
   121 
   112 
   122     /**
   113     /**
   123      * Pointer to the public class
   114      * Pointer to the public class
   144 
   135 
   145     /**
   136     /**
   146      * Radio engine handler.
   137      * Radio engine handler.
   147      * Own.
   138      * Own.
   148      */
   139      */
   149     QScopedPointer<CRadioEngineHandler>             mEngineHandler;
   140     QScopedPointer<RadioEngineHandler>              mEngineHandler;
   150 
   141 
   151     /**
   142     /**
   152      * RemCon listener.
   143      * RemCon listener.
   153      * Own.
   144      * Own.
   154      */
   145      */