taskswitcher/server/inc/tsmodelitem.h
changeset 127 7b66bc3c6dc9
parent 119 50e220be30d1
equal deleted inserted replaced
126:efda7c0771b9 127:7b66bc3c6dc9
    16 */
    16 */
    17 #ifndef TSMODELITEM_H
    17 #ifndef TSMODELITEM_H
    18 #define TSMODELITEM_H
    18 #define TSMODELITEM_H
    19 
    19 
    20 #include <e32base.h>
    20 #include <e32base.h>
    21 #include "tsmodelitemkey.h"
    21 #include "tsentry.h"
       
    22 #include "tsentrykey.h"
    22 
    23 
    23 class MTsModel;
    24 class MTsModel;
    24 
    25 
    25 class TTsModelItem {
    26 class TTsModelItem : public MTsEntry
       
    27     {
    26 public:
    28 public:
    27     TTsModelItem( const MTsModel& aModel, TInt aOffset );
    29     TTsModelItem( const MTsModel& aModel, TInt aOffset );
    28     TTsModelItem( const TTsModelItem& aItem );
    30     TTsModelItem( const TTsModelItem& aItem );
    29     const TDesC& DisplayNameL() const;
    31     TBool IsValid() const;
    30     TInt IconHandleL() const;
    32     const TDesC& DisplayName() const;
    31     TTime TimestampL() const;
    33     TInt IconHandle() const;
    32     TTime TimestampUpdateL() const; 
    34     TTime Timestamp() const;
    33     TTsModelItemKey KeyL() const;
    35     TTime TimestampUpdate() const; 
    34     TBool IsActiveL() const;
    36     TTsEntryKey Key() const;
    35     TBool IsClosableL() const;
    37     TBool IsActive() const;
    36     TBool CloseL() const;
    38     TBool IsClosable() const;
    37     TBool LaunchL() const;
    39     TBool Close() const;
    38     TBool IsMandatoryL() const;
    40     TBool Launch() const;
    39     
    41     TBool IsMandatory() const;
       
    42 
    40 public:
    43 public:
    41     void ExternalizeL( RWriteStream& aStream ) const;
    44     void ExternalizeL( RWriteStream& aStream ) const;
    42     
       
    43 private:
       
    44     void ValidateL() const;
       
    45 
    45 
    46 private:
    46 private:
    47     const MTsModel& iModel;
    47     const MTsModel& iModel;
    48     const TInt iIndex;
    48     const TInt iIndex;
    49 };
    49     };
    50 
    50 
    51 #endif //TSMODELITEM_H
    51 #endif //TSMODELITEM_H