wvuing/wvuiprocess/Inc/TEnumsPC.h
changeset 0 094583676ce7
equal deleted inserted replaced
-1:000000000000 0:094583676ce7
       
     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: Enumerations and Typedefs on Process Component Side
       
    15 *
       
    16 */
       
    17 #ifndef TENUMSPC_H
       
    18 #define TENUMSPC_H
       
    19 
       
    20 #include <e32base.h>
       
    21 #include <bamdesca.h>
       
    22 
       
    23 /*
       
    24 	This is main interface of arraywrapper on Process component side.
       
    25 	UI Side array decorator has to use this array and get the details required....
       
    26 */
       
    27 
       
    28 class TEnumsPC
       
    29     {
       
    30 
       
    31     public:	// Enumerations and typedefs
       
    32 
       
    33         enum TUnreadFilter
       
    34             {
       
    35             EUnreadAll,
       
    36             EUnreadReceived
       
    37             };
       
    38         enum TImpsCSPAllErrors
       
    39             {
       
    40             EImpsErrNone = 0,
       
    41             ECSPInsufficientGroupPrivileges,
       
    42             ECSPNotSupported,
       
    43             ECSPInvalidParameter,
       
    44             ECSPMultipleErrors //general errors
       
    45             };
       
    46 
       
    47 
       
    48         enum TContactEditorMode
       
    49             {
       
    50             EEditContact = 0,
       
    51             EAddToContact = 1,
       
    52             ECreateNew = 2,
       
    53             EEditAfterView = 3,
       
    54             EMoveContact = 4,
       
    55             EViewContact = 5,
       
    56             EUnknownMode = -1
       
    57             };
       
    58         enum TItem
       
    59             {
       
    60             EInvalid = -1,
       
    61             EOwnStatusItem,
       
    62             EContactItem,
       
    63             EContactListItem,
       
    64             EOpenChatsListItem,
       
    65             EConversationItem,
       
    66             EInviteItem,
       
    67             EGroupItem,
       
    68             EAll
       
    69             };
       
    70 
       
    71         enum TClientType
       
    72             {
       
    73             EUnknownClient = 0,
       
    74             EMobile,
       
    75             EPC
       
    76             };
       
    77 
       
    78         enum TFilterType
       
    79             {
       
    80             EFilterNotDefined = -1,
       
    81             EFilterAll,
       
    82             EFilterAndOperation,
       
    83             EFilterOnline,
       
    84             EFilterAway,
       
    85             EFilterNonOffline, // this means online and away
       
    86             EFilterNonBlocked,
       
    87             EFilterAllNonBlockedAndOperation,
       
    88             EFilterNonOfflineNonBlockedAndOperation,
       
    89             EFilterNonOfflineNonBlockedNonOfflineOperation,
       
    90             EFilterAllNonBlockedNonOfflineOperation
       
    91             };
       
    92 
       
    93         enum TOnlineStatus
       
    94             {
       
    95             EUnknown = -1,
       
    96             EOffline,
       
    97             EOnline,
       
    98             EInvisible,
       
    99             EAway,
       
   100             EBusy
       
   101             };
       
   102 
       
   103         enum TChange
       
   104             {
       
   105             EUnknownEvent = -1,
       
   106             EGroupChange, // this can be change in column B.....most of times....
       
   107             EAddition,
       
   108             EDelete,
       
   109             EChanged,
       
   110             EMultipleChanges,
       
   111             EUnReadCountChanged
       
   112             };
       
   113 
       
   114         enum TSyncStatus
       
   115             {
       
   116             ESyncUnknown = -1,
       
   117             ESyncFailed,
       
   118             ESyncNotDone,
       
   119             ESyncSuccess,
       
   120             };
       
   121         enum TCASettingStrings
       
   122             {
       
   123             EUnknownSettings = -1,
       
   124             EDefaultScreenName = 0,
       
   125             EOwnAlias,
       
   126             EStatusMsgOnline,
       
   127             EStatusMsgAway,
       
   128             EStatusMsgBusy,
       
   129             EOwnWVUserID
       
   130             };
       
   131 
       
   132 
       
   133         enum TCASettingValues
       
   134             {
       
   135             EUnknownValue = -1,
       
   136             EAllValue = 0,
       
   137             EFriends,
       
   138             ENobody,
       
   139             EDefaultScreenNameInUse,
       
   140             EAuthorizeIMPresence,
       
   141             EReceiveIMessages,
       
   142             EReceiveInvitations,
       
   143             EMessageFlowSettingLevel,
       
   144             EShowTimeStamps,
       
   145             EAutomaticPresenceUpdate,
       
   146             EShowOffline,
       
   147             EFriendsListOrdering
       
   148             };
       
   149 
       
   150         enum TCAFriendsListOrdering
       
   151             {
       
   152             EAlphabetical = 0,
       
   153             EPresence
       
   154             };
       
   155 
       
   156 
       
   157         enum TCABackgroundTasks
       
   158             {
       
   159             EGroupFetch = 1,
       
   160             EPresenceTask = 2,
       
   161             EWhisperSync = 4,
       
   162             //used just in 2.1
       
   163             EBlockGrantListFetch = 8,
       
   164             EFailed = -1//Not there in the engine side
       
   165             };
       
   166 
       
   167 
       
   168         enum TCABackgroundStatus
       
   169             {
       
   170             //add or removed
       
   171             EUnknownStatus = 0
       
   172             //enqueued and CIdle has been started
       
   173             , EIdleStarted = 1
       
   174             //CIdle is working
       
   175             , EStarting = 2
       
   176             //CActiveSchedulerWait has been started
       
   177             , EWaiting = 4
       
   178             //task or subtask has been completed
       
   179             , ECompleted = 8
       
   180             //task or subtask has been cancelled due to network loss or exit
       
   181             , ECancelled = 16
       
   182             //task or subtask has been failed and left
       
   183             , EFailedStatus = 32
       
   184             };
       
   185 
       
   186         // Search by which criteria
       
   187         enum TSearchCriteria
       
   188             {
       
   189             ESearchGroupName = 0,
       
   190             ESearchGroupTopic,
       
   191             ESearchGroupUserIDJoined,
       
   192             ESearchUserName,
       
   193             ESearchUserID,
       
   194             ESearchUserMobileNumber,
       
   195             ESearchUserEmailAddress,
       
   196             ESearchUserLastName
       
   197             };
       
   198     public: // Definitions for Message class
       
   199 
       
   200         /**
       
   201          * Different message types
       
   202          */
       
   203         enum TMessageType
       
   204             {
       
   205             EMessagePTOP,
       
   206             EMessageWhisper,
       
   207             EMessageGroup,
       
   208             EMessageSystem,
       
   209             EMessageInvalid
       
   210             };
       
   211 
       
   212         /**
       
   213          * System message enumerations.
       
   214          */
       
   215         enum TSystemMessage
       
   216             {
       
   217             ESystemMessageNone,
       
   218             ESystemMessageWelcome,
       
   219             ESystemMessageNewUsers,
       
   220             ESystemMessageTopicChanged,
       
   221             ESystemMessagePrivatChanged,
       
   222             ESystemMessageLeftUsers,
       
   223             ESystemMessageDateChange
       
   224             };
       
   225 
       
   226         /**
       
   227          * Direction of message. Coming or going or other.
       
   228          */
       
   229         enum TMessagerType
       
   230             {
       
   231             EMessageSent,
       
   232             EMessageReceived,
       
   233             EMessageOther
       
   234             };
       
   235 
       
   236         /**
       
   237          * Different message content types
       
   238          */
       
   239         enum TContentType
       
   240             {
       
   241             EContentText,
       
   242             EContentPicture,
       
   243             EContentOther,
       
   244             EContentInvalid
       
   245             };
       
   246 
       
   247         /**
       
   248          * Content processing states
       
   249          */
       
   250         enum TContentProcessState
       
   251             {
       
   252             EContentNotProcessed = 0,
       
   253             EContentNotSupported,
       
   254             EContentNotSupportedDrm,
       
   255             EContentCorrupted,
       
   256             EBitmapDecoded,
       
   257             EBitmapScaled,
       
   258             EContentReady,
       
   259             EContentDecoded,
       
   260             EThumbnailReady
       
   261             };
       
   262 
       
   263         enum TChatType
       
   264             {
       
   265             EPTOPChat   = 1,
       
   266             EGroupChat,
       
   267             EUnknownChatType = -1
       
   268             };
       
   269         enum TInviteType
       
   270             {
       
   271             ENewInvite,
       
   272             EInviteCancelOrExpired,
       
   273             EInviteRead,
       
   274             EInviteUnknown
       
   275             };
       
   276         enum TListSelectionType
       
   277             {
       
   278             EUnknownSelect = -1,
       
   279             ESingleListViewSelect,
       
   280             ESingleSelect,
       
   281             EMultiSelect,
       
   282             ESingleListMultiSelect
       
   283             };
       
   284 
       
   285         enum TImpsPropertyBoolPC
       
   286             {
       
   287             EImpsPropUndef = -1,    // undefined
       
   288             EImpsPropNo ,        // false, no, ...
       
   289             EImpsPropYes         // true, yes
       
   290             };
       
   291 
       
   292 
       
   293         /**
       
   294          * Events for observer to handle.
       
   295          */
       
   296         enum TChatEventType
       
   297             {
       
   298             EGroupListChanged,
       
   299             EChatListChanged,
       
   300             ESendListChanged,
       
   301             EUnreadCountChanged, // Happens with new message and when messages are read.
       
   302             EMemoryLow,
       
   303             EEventNotSpecified
       
   304             };
       
   305 
       
   306         /**
       
   307         * Events for Forward status
       
   308         */
       
   309         enum TForwardStatus
       
   310             {
       
   311             EUnregistered = 0,
       
   312             EToBeUnregistered,
       
   313             ERegister,
       
   314             EAlreadyRegistered
       
   315             };
       
   316 
       
   317 
       
   318     };
       
   319 
       
   320 #endif      // TENUMSPC_H
       
   321