equal
deleted
inserted
replaced
|
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 TSMODEL_H |
|
18 #define TSMODEL_H |
|
19 |
|
20 #include <e32base.h> |
|
21 #include "tsmodelitem.h" |
|
22 |
|
23 class MTsModelObserver; |
|
24 class MTsModel |
|
25 { |
|
26 public: |
|
27 virtual TInt count() const = 0; |
|
28 TTsModelItem itemL(TInt offset) const; |
|
29 virtual void setObserver(MTsModelObserver *observer) = 0; |
|
30 |
|
31 protected: //data access. should be used by TModelItem |
|
32 virtual const TDesC& displayNameL(TInt offset) const = 0; |
|
33 virtual TInt iconHandleL(TInt offset) const = 0; |
|
34 virtual TTime timestampL(TInt offset) const = 0; |
|
35 virtual TTsModelItemKey keyL(TInt offset) const = 0; |
|
36 virtual TBool isActiveL(TInt offset) const = 0; |
|
37 virtual TBool isClosableL(TInt offset) const = 0; |
|
38 |
|
39 protected: //operations execution |
|
40 virtual TBool closeL(TTsModelItemKey key) const = 0; |
|
41 virtual TBool launchL(TTsModelItemKey key) const = 0; |
|
42 |
|
43 friend class TTsModelItem; |
|
44 }; |
|
45 |
|
46 #endif //TSMODEL_H |