wvuing/wvuistorage/inc/TStorageManagerGlobals.h
changeset 0 094583676ce7
equal deleted inserted replaced
-1:000000000000 0:094583676ce7
       
     1 /*
       
     2 * Copyright (c) 2002-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:  Globally used enumerations
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef TSTORAGEMANAGERGLOBALS_H
       
    21 #define TSTORAGEMANAGERGLOBALS_H
       
    22 
       
    23 class TStorageManagerGlobals
       
    24     {
       
    25     public: // enumerations
       
    26 
       
    27         enum TPresenceStatus
       
    28             {
       
    29             EUnknown = -1,
       
    30             EOffline,
       
    31             EOnline,
       
    32             EInvisible,
       
    33             EAway,
       
    34             EBusy
       
    35             };
       
    36 
       
    37         enum TClientType
       
    38             {
       
    39             EUnknownClient = 0,
       
    40             EMobile,
       
    41             EPC
       
    42             };
       
    43 
       
    44         enum TCAStorageType
       
    45             {
       
    46             EUnknownStorageType = -1,
       
    47             EStoragePersistent,
       
    48             EStorageMemory
       
    49             };
       
    50 
       
    51         // properties
       
    52         enum TCAStorageProperty
       
    53             {
       
    54             EStoragePropNickname = 0,
       
    55             EStoragePropAlias,
       
    56             EStoragePropUserId
       
    57             };
       
    58 
       
    59         // observer event types
       
    60         enum TCAObserverEventType
       
    61             {
       
    62             EStorageEventBackupRestoreStarted = 0,
       
    63             EStorageEventBackupRestoreEnded,
       
    64             EStorageEventPreChange,
       
    65             EStorageEventPostChange,
       
    66             EStorageEventGroupChange,
       
    67             EStorageEventContactAddition,
       
    68             EStorageEventContactDelete,
       
    69             EStorageEventListAddition,
       
    70             EStorageEventListChanged,
       
    71             EStorageEventListDelete,
       
    72             EStorageEventOwnStatusChange,
       
    73             EStorageEventMultipleChanges
       
    74             };
       
    75 
       
    76         // Filter type for getting right contacts
       
    77         // Tells us what to show; for example EFilterAll
       
    78         // does not filter out any statuses: all contacts are shown
       
    79         enum TFilterType
       
    80             {
       
    81             EFilterNotDefined = -1,
       
    82             EFilterAll = 0,
       
    83             EFilterAndOperation = 1,
       
    84             EFilterOnline = 2,
       
    85             EFilterNonBlocked = 4,
       
    86             EFilterAway = 8,
       
    87             EFilterNonOffline = 16 // this means online and away
       
    88             };
       
    89     };
       
    90 
       
    91 #endif // TSTORAGEMANAGERGLOBALS_H