|
1 /* |
|
2 * Copyright (c) 2002-2006 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 * This class defines the data model interface for CVRStateInfoPanel. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef __MVRSTATEINFOMODEL_H__ |
|
21 #define __MVRSTATEINFOMODEL_H__ |
|
22 |
|
23 // INCLUDES |
|
24 #include <AknLayoutDef.h> |
|
25 |
|
26 // FORWARD DECLARATIONS |
|
27 class MVRObserver; |
|
28 class MVRStateInfoObserver; |
|
29 |
|
30 // CLASS DEFINITION |
|
31 /** |
|
32 * This class defines the data model interface for CVRStateInfoPanel. |
|
33 **/ |
|
34 class MVRStateInfoModel |
|
35 { |
|
36 public: // new methods |
|
37 |
|
38 /** |
|
39 * Returns the length of the current memo |
|
40 * @return The duration in microseconds. |
|
41 */ |
|
42 virtual TTimeIntervalMicroSeconds Duration() const = 0; |
|
43 |
|
44 /** |
|
45 * Returns the playing or recording position of the current memo. |
|
46 * @return The position in microseconds. |
|
47 */ |
|
48 virtual TTimeIntervalMicroSeconds Position() const = 0; |
|
49 |
|
50 /** |
|
51 * Returns the text content for a label. |
|
52 * @param aName Returned text is placed in this descriptor |
|
53 * @param aLabelIndex Label identifier (>=0) |
|
54 */ |
|
55 virtual void GetLabel( TDes& aName, TInt aLabelIndex ) const = 0; |
|
56 |
|
57 /** |
|
58 * Returns the resource id for a label. |
|
59 * @param aLabelIndex Label identifier (>=0) |
|
60 * @return The resource id for the specified label |
|
61 */ |
|
62 virtual TInt ResourceIdForLabel( TInt aLabelIndex, TAknLayoutId aLayout ) const = 0; |
|
63 |
|
64 /** |
|
65 * Registers an observer for receiving |
|
66 * update notifications from this interface. |
|
67 * @param aObserver The observer object. |
|
68 */ |
|
69 virtual void SetStateInfoObserver( MVRObserver* aObserver ) = 0; |
|
70 |
|
71 /** |
|
72 * Determines is view has a progress bar |
|
73 * @return ETrue if view has a progress bar, otherwise EFalse |
|
74 */ |
|
75 virtual TBool HasProgressBar() const = 0; |
|
76 |
|
77 /** |
|
78 * Registers an observer to communicate about the changes in InfoPanel. |
|
79 * @param aObserver The observer object. |
|
80 */ |
|
81 virtual void SetStateInfoPanelObserver( MVRStateInfoObserver* aObserver ) = 0; |
|
82 |
|
83 }; |
|
84 |
|
85 #endif // __MVRSTATEINFOMODEL_H__ |