40 public: //from MTsModel |
40 public: //from MTsModel |
41 TInt Count() const; |
41 TInt Count() const; |
42 void SetObserver( MTsModelObserver *aObserver ); |
42 void SetObserver( MTsModelObserver *aObserver ); |
43 |
43 |
44 protected: //from MTsModel |
44 protected: //from MTsModel |
45 const TDesC& DisplayNameL( TInt aOffset ) const; |
45 const TDesC& DisplayName( TInt aOffset ) const; |
46 TInt IconHandleL( TInt aOffset ) const; |
46 TInt IconHandle( TInt aOffset ) const; |
47 TTime TimestampL( TInt aOffset ) const; |
47 TTime Timestamp( TInt aOffset ) const; |
48 TTime TimestampUpdateL(TInt offset) const; |
48 TTime TimestampUpdate(TInt offset) const; |
49 TTsModelItemKey KeyL( TInt aOffset ) const; |
49 TTsEntryKey Key( TInt aOffset ) const; |
50 TBool IsActiveL( TInt aOffset ) const; |
50 TBool IsActive( TInt aOffset ) const; |
51 TBool IsClosableL( TInt aOffset ) const; |
51 TBool IsClosable( TInt aOffset ) const; |
52 TBool IsMandatoryL( TInt aOffset ) const; |
52 TBool IsMandatory( TInt aOffset ) const; |
53 TBool CloseL( TTsModelItemKey aKey ) const; |
53 TBool Close( TTsEntryKey aKey ) const; |
54 TBool LaunchL( TTsModelItemKey aKey ) const; |
54 TBool Launch( TTsEntryKey aKey ) const; |
55 |
55 |
56 private: |
56 private: |
57 CTsService(); |
57 CTsService(); |
58 void ConstructL( MTsResourceManager& aResources, QObject* aModel ); |
58 void ConstructL( MTsResourceManager& aResources, QObject* aModel ); |
59 TInt IntValueL( TInt aOffset, const char* aKey ) const; |
59 TInt IntValue( TInt aOffset, const char* aKey ) const; |
60 TTime TimeValueL( TInt aOffset, const char* aKey ) const; |
60 TTime TimeValue( TInt aOffset, const char* aKey ) const; |
61 const TDesC& StringValueL( TInt aOffset, const char* aKey ) const; |
61 const TDesC& StringValue( TInt aOffset, const char* aKey ) const; |
62 private: |
62 private: |
63 QObject *iModel; |
63 QObject *iModel; |
64 QObject *iServiceObserver; |
64 QObject *iServiceObserver; |
65 MTsModelObserver *iModelObserver; |
65 MTsModelObserver *iModelObserver; |
66 HBufC *iBuffer; |
66 mutable HBufC *iBuffer; |
67 }; |
67 }; |
68 #endif //TSSERVICE_H |
68 #endif //TSSERVICE_H |