00001 /* 00002 * ============================================================================ 00003 * Name : AknNotify.Std.h 00004 * Part of : Avkon 00005 * 00006 * Description: 00007 * 00008 * Version: 00009 * 00010 * Copyright © 2002 Nokia Corporation. 00011 * This material, including documentation and any related 00012 * computer programs, is protected by copyright controlled by 00013 * Nokia Corporation. All rights are reserved. Copying, 00014 * including reproducing, storing, adapting or translating, any 00015 * or all of this material requires the prior written consent of 00016 * Nokia Corporation. This material also contains confidential 00017 * information which may not be disclosed to others without the 00018 * prior written consent of Nokia Corporation. 00019 * ============================================================================ 00020 */ 00021 00022 #ifndef AKNNOTIFYSTD_H 00023 #define AKNNOTIFYSTD_H 00024 00025 #include <e32std.h> 00026 #include <e32base.h> 00027 #include <eiknotapi.h> 00028 00029 // UIDs reserved from Uid list 00030 const TUid KAknPopupNotifierUid={0x100059DC}; 00031 const TUid KAknSignalNotifierUid={0x100059AB}; 00032 const TUid KAknBatteryNotifierUid={0x100059AC}; 00033 const TUid KAknSmallIndicatorUid={0x100059AD}; 00034 const TUid KAknAsyncDemoNotifierUid={0x100059AE}; 00035 const TUid KAknTestNoteUid={0x100059AF}; 00036 const TUid KAknKeyLockNotifierUid={0x100059B0}; 00037 const TUid KAknGlobalNoteUid={0x100059B1}; 00038 const TUid KAknSoftNotificationUid={0x100059B2}; 00039 const TUid KAknIncallBubbleUid={0x100059B3}; 00040 const TUid KAknGlobalListQueryUid={0x100059B4}; 00041 const TUid KAknGlobalMsgQueryUid={0x100059CB}; 00042 const TUid KAknGlobalConfirmationQueryUid={0x100059DB}; 00043 const TUid KAknGlobalProgressDialogUid={0x10005A04}; 00044 const TUid KAknMemoryCardDialogUid={0x101F467A}; 00045 const TUid KAknNotifierControllerUid={0x1020721C}; 00046 00047 // const TUid EAknNotifierChannelKeyLock = {0}; 00048 const TUid EAknNotifierChannelNote = {1}; 00049 const TUid EAknNotifierChannelList = {2}; 00050 const TUid EAknNotifierChannelMsgQuery = {3}; 00051 const TUid EAknNotifierChannelConfirmationQuery = {4}; 00052 const TUid EAknNotifierChannelProgressDialog = {5}; 00053 00054 struct SAknSignalNotifyParams 00055 { 00056 TInt iGprsState; 00057 TInt iValue; 00058 }; 00059 00060 struct SAknBatteryNotifyParams 00061 { 00062 enum { ERecharge, EStopRecharge, ENoRecharge, ESetValue } iType; 00063 TInt iValue; 00064 }; 00065 00066 struct SAknSmallIndicatorParams 00067 { 00068 TUid iSmallIndicatorUid; 00069 TInt iValue; 00070 }; 00071 00072 struct SAknIncallBubbleParams 00073 { 00074 TInt iIncallBubbleFlags; 00075 }; 00076 00077 // KeyLock reason 00078 enum TKeyLockNotifierReason 00079 { 00080 ELockEnabled, 00081 ELockDisabled, 00082 EAllowNotifications, 00083 EStopNotifications, 00084 EInquire, 00085 EOfferKeylock, 00086 ECancelAllNotifications, 00087 EEnableAutoLockEmulation, 00088 EDisableWithoutNote, 00089 EEnableWithoutNote, 00090 // add normal keylock operations before this 00091 ECommandFSWToHideApplication=99 00092 }; 00093 00094 struct SAknSoftNoteNotifierParams 00095 { 00096 TInt iNoteResource; 00097 TInt iNoteCbaResource; 00098 TInt iResponse; 00099 }; 00100 00101 struct SAknKeyLockNotifierParams 00102 { 00103 TKeyLockNotifierReason iReason; 00104 TBool iEnabled; 00105 }; 00106 00107 enum TAknGlobalNoteType 00108 { 00109 EAknGlobalInformationNote = 1, 00110 EAknGlobalWarningNote, 00111 EAknGlobalConfirmationNote, 00112 EAknGlobalErrorNote, 00113 EAknGlobalChargingNote, 00114 EAknGlobalWaitNote, 00115 EAknGlobalPermanentNote, 00116 EAknGlobalNotChargingNote, 00117 EAknGlobalBatteryFullNote, 00118 EAknGlobalBatteryLowNote, 00119 EAknGlobalRechargeBatteryNote, 00120 EAknCancelGlobalNote, 00121 EAknGlobalTextNote 00122 }; 00123 00124 struct SAknGlobalNoteParams 00125 { 00126 TAknGlobalNoteType iType; 00127 TPtrC iText; 00128 TInt iPriority; 00129 TInt iSoftkeys; 00130 TInt iGraphic; 00131 TInt iGraphicMask; 00132 TInt iAnimation; 00133 }; 00134 00135 struct SAknGlobalNoteReturnParams 00136 { 00137 TInt iNoteId; 00138 }; 00139 00140 00141 enum TAknGlobalQueryCmd 00142 { 00143 EAknShowGlobalQuery=1, 00144 EAknCancelGlobalQuery, 00145 EAknUpdateGlobalQuery, 00146 // list query cmds, 00147 EAknMoveDownGlobalListQuery, 00148 EAknMoveUpGlobalListQuery, 00149 EAknSelectGlobalListQuery, 00150 // Progess dialog cmds 00151 EAknFinishGlobalProgressDialog 00152 }; 00153 00154 struct SAknGlobalListQueryParams 00155 { 00156 TAknGlobalQueryCmd iCmd; 00157 TInt iIndex; 00158 }; 00159 00160 struct SAknGlobalMsgQueryParams 00161 { 00162 TAknGlobalQueryCmd iCmd; 00163 TInt iSoftkeys; 00164 }; 00165 00166 struct SAknGlobalProgressDialogParams 00167 { 00168 TAknGlobalQueryCmd iCmd; 00169 TInt iValue; 00170 TInt iFinalValue; 00171 }; 00172 00173 enum TAknSoftNotificationType 00174 { 00175 ENoSoftNotification = -1, 00176 ENetworkInformationNotification=0, 00177 ESelectNetworkNotification, 00178 EUnstructuredSSDataNotification, 00179 EVoiceMailNotification, 00180 ESeparateVoiceMailOnLine1Notification, 00181 ESeparateVoiceMailOnLine2Notification, 00182 ECellBroadcastNotification, 00183 00184 EDeliveryReportNotification, 00185 EClass0SmsNotification, 00186 00187 EMissedCallsNotification, 00188 ENewMessagesNotification, 00189 ENewMailNotification, 00190 00191 EShowActiveNotifications, 00192 00193 EShowGroupedNotification, 00194 ECustomSoftNotification, 00195 EChatMessageNotification, 00196 EMaxSoftNotification, 00197 ESetIdleState = 100 00198 }; 00199 00200 struct SAknSoftNotificationParams 00201 { 00202 //The type of the soft notification, see above 00203 TAknSoftNotificationType iType; 00204 //iIsCancel is used to decide whether to spawn a new (or add the number on an existing) 00205 //soft notification or to cancel a type of soft notification. Please note that 00206 //calling a cancel on a certain type of soft notification cancels all soft notifications 00207 //of that type. 00208 TBool iIsCancel; 00209 00210 //This parameter is intended only to be used when setting the number of new messages. 00211 //Stay clear otherwise! 00212 TInt iCount; 00213 }; 00214 00215 enum TAknSignalStates 00216 { 00217 EAknSignalGprsStateOff = 0, 00218 EAknSignalGprsStateOn = 1, 00219 EAknSignalGprsStateNotChanged = -1, 00220 EAknSignalStateNotChanged = -2, 00221 // Constants below are used for syncronizing signalpane and navipane background types. 00222 EAknSignalGprsIndicatorBgTypeNotDefined = -3, 00223 EAknSignalGprsIndicatorBgTypeWipe = -4, 00224 EAknSignalGprsIndicatorBgTypeSolid = -5 00225 }; 00226 00227 const TInt KAknSignalNumberOfGprsStates = 6; 00228 00229 struct SAknMemoryCardUIParams 00230 { 00231 TBool iStore; 00232 }; 00233 00234 // Deprecated, no motivation to use anymore, variation of this feature is handled via lafenv 00235 class MAknUINotifierBase: public MEikSrvNotifierBase2 00236 { 00237 public: 00238 TInt NotifierCapabilites(){return EScreenDeviceChangeSupported;} 00239 }; 00240 00241 // AKNNOTIFYSTD_H 00242 #endif