|
1 /* |
|
2 * Copyright (c) 2005 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: The MUS application's UI class. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef MUSUIDEFINITIONS_H |
|
21 #define MUSUIDEFINITIONS_H |
|
22 |
|
23 #include <e32base.h> |
|
24 |
|
25 |
|
26 // View UIDs |
|
27 const TUid KMusUidNullView = { 0 }; |
|
28 const TUid KMusUidReceivingView = { 1 }; |
|
29 const TUid KMusUidLiveSharingView = { 2 }; |
|
30 const TUid KMusUidClipSharingView = { 3 }; |
|
31 const TUid KMusUidGeneralView = { 4 }; |
|
32 const TUid KMusUidSendView = { 5 }; |
|
33 |
|
34 // Volume settings |
|
35 const TInt KMusVolumeMuted = 0; |
|
36 const TInt KMusVolumeMaximum = 10; |
|
37 const TInt KMusVolumeDefault = 5; |
|
38 |
|
39 // protocol prefixes and address components |
|
40 const TInt KMusSipAddressesMaxAmount = 8; |
|
41 const TInt KMusPrefixMaxLength = 4; |
|
42 const TInt KMusSipAddressMaxLength = 256; |
|
43 _LIT( KMusPrefixSipUri, "sip:" ); |
|
44 _LIT( KMusPrefixTelUri, "tel:" ); |
|
45 _LIT( KMusAtSymbol, "@" ); |
|
46 _LIT( KMusSpaceSymbol, " " ); |
|
47 _LIT( KMusEmptyStringSymbol, "" ); |
|
48 _LIT( KMusCommaSymbol, "," ); |
|
49 _LIT( KMusVideoFileNameExtension, ".3gp" ); |
|
50 _LIT( KMusVideoFileNameBegining, "VS" ); |
|
51 _LIT( KMusVideoFileNameVersion, "V" ); |
|
52 |
|
53 const TInt KMusDriveAndColonStringLength = 2; |
|
54 const TInt KMusPercentUStringLength = 2; |
|
55 const TInt KMusVideoFileNameNumberStringStartPos = 7; |
|
56 const TInt KMusVideoFileNameNumberStringLength = 3; |
|
57 |
|
58 const TInt KMusDefaultArrayGranularity = 5; |
|
59 const TInt KMusStringSubstArrayGranularity = 2; |
|
60 |
|
61 const TInt KMusOneHundredPercent = 100; |
|
62 |
|
63 const TInt KMusErrorMessageMaxLength = 512; |
|
64 const TInt KMusNameFieldMaxLength = 512; |
|
65 const TInt KMusFileNameMaxLength = 256; |
|
66 |
|
67 // time constants |
|
68 const TInt KMusOneSecond = 1000000; // one second in microseconds |
|
69 const TInt KMusInviteExpireTimeout = 60; // seconds |
|
70 const TInt KMusReceiveTimeout = 10 * KMusOneSecond; // ten seconds |
|
71 const TInt KMusOneMinuteInSeconds = 60; |
|
72 const TInt KMusNumberValueTen = 10; |
|
73 const TInt KMusLocaleHoursAndMinutesSeparator = 1; |
|
74 const TInt KMusLocaleMinutesAndSecondsSeparator = 2; |
|
75 const TInt KMusBacklightTimeOut = 4; // seconds |
|
76 |
|
77 const TInt KMusNumberValueTwo = 2; |
|
78 |
|
79 /** asynchronous UI events */ |
|
80 enum TMusUiAsyncEvent |
|
81 { |
|
82 EMusUiAsyncUninitialized = 0, |
|
83 EMusUiAsyncInviteCancel, |
|
84 EMusUiAsyncManualAddressEntry, |
|
85 EMusUiAsyncInviteAccepted, |
|
86 EMusUiAsyncStartInvitation, |
|
87 EMusUiAsyncStartMediaGallery, |
|
88 EMusUiAsyncStartTranscoding, |
|
89 EMusUiAsyncHandleExit |
|
90 }; |
|
91 |
|
92 enum TMusUiNaviMediaDecorator |
|
93 { |
|
94 EMusUiNaviIconNone = -1, |
|
95 EMusUiNaviIconForward, |
|
96 EMusUiNaviIconPause, |
|
97 EMusUiNaviIconPlay, |
|
98 EMusUiNaviIconRecord, |
|
99 EMusUiNaviIconRecordNot, |
|
100 EMusUiNaviIconRew, |
|
101 EMusUiNaviIconStop, |
|
102 EMusUiNaviIconWaitAnim |
|
103 }; |
|
104 |
|
105 enum TMusUiLoudspeakerStatus |
|
106 { |
|
107 ELoudspeakerDisabled = 0, |
|
108 ELoudspeakerEnabled = 1 |
|
109 }; |
|
110 |
|
111 enum TMusUiLoudspeakerDialogStatus |
|
112 { |
|
113 ELoudspeakerDialogDisabled = 0, |
|
114 ELoudspeakerDialogEnabled = 1 |
|
115 }; |
|
116 |
|
117 enum TMusUiVolumeStatus |
|
118 { |
|
119 EVolumeDown = 0, |
|
120 EVolumeUp = 1 |
|
121 }; |
|
122 |
|
123 enum TMusUiIndicatorType |
|
124 { |
|
125 EMusUiIndicatorTypeZoom = 0, |
|
126 EMusUiIndicatorTypeBrightness, |
|
127 EMusUiIndicatorTypeDuration |
|
128 }; |
|
129 |
|
130 |
|
131 |
|
132 #endif // MUSUIDEFINITIONS_H |
|
133 |
|
134 |
|
135 // end of file |