taskswitcher/server/inc/tsmodelitem.h
changeset 116 305818acdca4
child 119 50e220be30d1
equal deleted inserted replaced
112:dbfb5e38438b 116:305818acdca4
       
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 *
       
    16 */
       
    17 #ifndef TSMODELITEM_H
       
    18 #define TSMODELITEM_H
       
    19 
       
    20 #include <e32base.h>
       
    21 #include "tsmodelitemkey.h"
       
    22 
       
    23 class MTsModel;
       
    24 
       
    25 class TTsModelItem {
       
    26 public:
       
    27     TTsModelItem( const MTsModel& aModel, TInt aOffset );
       
    28     TTsModelItem( const TTsModelItem& aItem );
       
    29     const TDesC& DisplayNameL() const;
       
    30     TInt IconHandleL() const;
       
    31     TTime TimestampL() const;
       
    32     TTime TimestampUpdateL() const; 
       
    33     TTsModelItemKey KeyL() const;
       
    34     TBool IsActiveL() const;
       
    35     TBool IsClosableL() const;
       
    36     TBool CloseL() const;
       
    37     TBool LaunchL() const;
       
    38     
       
    39 public:
       
    40     void ExternalizeL( RWriteStream& aStream ) const;
       
    41     
       
    42 private:
       
    43     void ValidateL() const;
       
    44 
       
    45 private:
       
    46     const MTsModel& iModel;
       
    47     const TInt iIndex;
       
    48 };
       
    49 
       
    50 #endif //TSMODELITEM_H