controlpanelui/src/tonefetcher/tonefetcherengine/private/symbian/toneselectionengine_p.h
changeset 24 f5dfdd5e4a1b
parent 14 23411a3be0db
equal deleted inserted replaced
17:4a9568303383 24:f5dfdd5e4a1b
    30 #include <e32base.h>
    30 #include <e32base.h>
    31 #include <QObject>
    31 #include <QObject>
    32 #include <QStringList>
    32 #include <QStringList>
    33 // FORWARD DECLARATIONS
    33 // FORWARD DECLARATIONS
    34 class ToneFetcherEngine;
    34 class ToneFetcherEngine;
       
    35 class ToneSelectionEnginePrivate;
    35 // CONSTANTS
    36 // CONSTANTS
    36 _LIT( KMimeMp3, "mp3" );
    37 _LIT( KMimeMp3, "mp3" );
       
    38 
       
    39 class CTimeOutTimer : public CTimer
       
    40 {
       
    41 public:
       
    42     static CTimeOutTimer* NewL(ToneSelectionEnginePrivate& aObserver);
       
    43     static CTimeOutTimer* NewLC(ToneSelectionEnginePrivate& aObserver);
       
    44 
       
    45     ~CTimeOutTimer();   
       
    46 
       
    47 protected:
       
    48     virtual void RunL();    
       
    49 
       
    50 private:
       
    51     CTimeOutTimer(ToneSelectionEnginePrivate& aObserver);
       
    52     void ConstructL(); 
       
    53 
       
    54 private:
       
    55 
       
    56     ToneSelectionEnginePrivate& iObserver;
       
    57 };
    37 
    58 
    38 // CLASS DECLARATION
    59 // CLASS DECLARATION
    39 /**
    60 /**
    40  *  This class is used for quering tones from mde.
    61  *  This class is used for quering tones from mde.
    41  *
    62  *
    72         };
    93         };
    73 
    94 
    74 public:
    95 public:
    75     ToneSelectionEnginePrivate(  ToneFetcherEngine *engine );
    96     ToneSelectionEnginePrivate(  ToneFetcherEngine *engine );
    76     virtual ~ToneSelectionEnginePrivate();
    97     virtual ~ToneSelectionEnginePrivate();
    77     
    98     void ChangeObject();
    78 signals:
    99 signals:
    79     void mdeSessionOpened();
   100     void mdeSessionOpened();
    80     void mdeSessionError( int error );
   101     void mdeSessionError( int error );
    81     void queryComplete( QStringList nameList, QStringList uriList );
   102     void queryComplete( const QStringList& nameList, const QStringList& uriList );
    82     void queryError( int error );
   103     void queryError( int error );
    83     void notifyObjectChanged();
   104     void notifyObjectChanged();
    84 
   105     void notifyRefreshStart();
       
   106     void notifyRefreshFinish();
    85 
   107 
    86 public:
   108 public:
    87     static CMdEPropertyDef& PropertyDefL(CMdESession* aSession, TInt aAttr);
   109     static CMdEPropertyDef& PropertyDefL(CMdESession* aSession, TInt aAttr);
    88     void QueryTones();   
   110     void QueryTones();   
    89     void SetAttr( int attr, int value );
   111     void SetAttr( int attr, int value );
   135     // max audio file file size
   157     // max audio file file size
   136     TInt iMaxFileSize;
   158     TInt iMaxFileSize;
   137     
   159     
   138     // query error
   160     // query error
   139     TInt iQueryError;
   161     TInt iQueryError;
       
   162     
       
   163     // for refresh
       
   164     CTimeOutTimer *iTimer;
       
   165     TBool iContinue;
       
   166     TBool iTimerStarted;
       
   167     TBool iFreshing;
   140 };
   168 };
   141 #endif /* TONESELECTIONENGINE_H_ */
   169 #endif /* TONESELECTIONENGINE_H_ */
   142 
   170