contentstorage/inc/cadef.h
author hgs
Tue, 23 Mar 2010 23:42:03 +0200
changeset 87 9d806967057c
parent 86 e492551a0d54
child 88 7f0462e8c3da
permissions -rw-r--r--
201007
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
85
7feec50967db 201003_02
hgs
parents:
diff changeset
     1
/*
7feec50967db 201003_02
hgs
parents:
diff changeset
     2
 * Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies).
7feec50967db 201003_02
hgs
parents:
diff changeset
     3
 * All rights reserved.
7feec50967db 201003_02
hgs
parents:
diff changeset
     4
 * This component and the accompanying materials are made available
7feec50967db 201003_02
hgs
parents:
diff changeset
     5
 * under the terms of "Eclipse Public License v1.0"
7feec50967db 201003_02
hgs
parents:
diff changeset
     6
 * which accompanies this distribution, and is available
7feec50967db 201003_02
hgs
parents:
diff changeset
     7
 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
7feec50967db 201003_02
hgs
parents:
diff changeset
     8
 *
7feec50967db 201003_02
hgs
parents:
diff changeset
     9
 * Initial Contributors:
7feec50967db 201003_02
hgs
parents:
diff changeset
    10
 * Nokia Corporation - initial contribution.
7feec50967db 201003_02
hgs
parents:
diff changeset
    11
 *
7feec50967db 201003_02
hgs
parents:
diff changeset
    12
 * Contributors:
7feec50967db 201003_02
hgs
parents:
diff changeset
    13
 *
7feec50967db 201003_02
hgs
parents:
diff changeset
    14
 * Description:  Definition of different constants
87
hgs
parents: 86
diff changeset
    15
 *  Version     : %version: 10.1.4 % << Don't touch! Updated by Synergy at check-out.
85
7feec50967db 201003_02
hgs
parents:
diff changeset
    16
 *
7feec50967db 201003_02
hgs
parents:
diff changeset
    17
 */
7feec50967db 201003_02
hgs
parents:
diff changeset
    18
7feec50967db 201003_02
hgs
parents:
diff changeset
    19
#ifndef CADEF_H
7feec50967db 201003_02
hgs
parents:
diff changeset
    20
#define CADEF_H
7feec50967db 201003_02
hgs
parents:
diff changeset
    21
7feec50967db 201003_02
hgs
parents:
diff changeset
    22
#include <e32base.h>
7feec50967db 201003_02
hgs
parents:
diff changeset
    23
#include "cainternaltypes.h"
7feec50967db 201003_02
hgs
parents:
diff changeset
    24
7feec50967db 201003_02
hgs
parents:
diff changeset
    25
// ---------------------------------------------------------
7feec50967db 201003_02
hgs
parents:
diff changeset
    26
//Ca constants
7feec50967db 201003_02
hgs
parents:
diff changeset
    27
7feec50967db 201003_02
hgs
parents:
diff changeset
    28
enum TChangeType
7feec50967db 201003_02
hgs
parents:
diff changeset
    29
    {
7feec50967db 201003_02
hgs
parents:
diff changeset
    30
    EAddChangeType,
7feec50967db 201003_02
hgs
parents:
diff changeset
    31
    ERemoveChangeType,
7feec50967db 201003_02
hgs
parents:
diff changeset
    32
    EUpdateChangeType
7feec50967db 201003_02
hgs
parents:
diff changeset
    33
    };
7feec50967db 201003_02
hgs
parents:
diff changeset
    34
7feec50967db 201003_02
hgs
parents:
diff changeset
    35
enum TEntryRole
7feec50967db 201003_02
hgs
parents:
diff changeset
    36
    {
7feec50967db 201003_02
hgs
parents:
diff changeset
    37
    ENoneEntryRole = 0,
7feec50967db 201003_02
hgs
parents:
diff changeset
    38
    EItemEntryRole = 1,
7feec50967db 201003_02
hgs
parents:
diff changeset
    39
    EGroupEntryRole = 2
7feec50967db 201003_02
hgs
parents:
diff changeset
    40
    };
7feec50967db 201003_02
hgs
parents:
diff changeset
    41
7feec50967db 201003_02
hgs
parents:
diff changeset
    42
//Entry flags
7feec50967db 201003_02
hgs
parents:
diff changeset
    43
enum TEntryFlag
7feec50967db 201003_02
hgs
parents:
diff changeset
    44
    {
7feec50967db 201003_02
hgs
parents:
diff changeset
    45
    EUsed = 1,
7feec50967db 201003_02
hgs
parents:
diff changeset
    46
    ESystem = 2,
7feec50967db 201003_02
hgs
parents:
diff changeset
    47
    ERemovable = 4,
7feec50967db 201003_02
hgs
parents:
diff changeset
    48
    EVisible = 8,
7feec50967db 201003_02
hgs
parents:
diff changeset
    49
    ERunning = 16,
7feec50967db 201003_02
hgs
parents:
diff changeset
    50
    ENative = 32,
7feec50967db 201003_02
hgs
parents:
diff changeset
    51
    EMissing = 64
7feec50967db 201003_02
hgs
parents:
diff changeset
    52
    };
7feec50967db 201003_02
hgs
parents:
diff changeset
    53
// Ca - Application
7feec50967db 201003_02
hgs
parents:
diff changeset
    54
_LIT( KCaTypeFolder, "folder" );
7feec50967db 201003_02
hgs
parents:
diff changeset
    55
_LIT( KCaTypeCollection, "collection" );
7feec50967db 201003_02
hgs
parents:
diff changeset
    56
_LIT( KCaTypeApp, "application" );
7feec50967db 201003_02
hgs
parents:
diff changeset
    57
_LIT( KCaTypeWidget, "widget" );
7feec50967db 201003_02
hgs
parents:
diff changeset
    58
_LIT( KCaTypeUrl, "url" );
7feec50967db 201003_02
hgs
parents:
diff changeset
    59
_LIT( KCaAttrView, "view" ); ///< View.
7feec50967db 201003_02
hgs
parents:
diff changeset
    60
_LIT( KCaAttrUrl, "url" );
7feec50967db 201003_02
hgs
parents:
diff changeset
    61
_LIT( KCaAttrWindowGroupId, "window_group_id" );
7feec50967db 201003_02
hgs
parents:
diff changeset
    62
_LIT( KCaTypeCollectionDownload, "collection::downloaded" );
7feec50967db 201003_02
hgs
parents:
diff changeset
    63
_LIT( KCaPackageUid,"packageuid");
87
hgs
parents: 86
diff changeset
    64
_LIT( KCaAttrInstallationTime, "installationTime");
85
7feec50967db 201003_02
hgs
parents:
diff changeset
    65
7feec50967db 201003_02
hgs
parents:
diff changeset
    66
const TInt KGranularityOne = 1;
7feec50967db 201003_02
hgs
parents:
diff changeset
    67
const TInt KUidChars = 10;
7feec50967db 201003_02
hgs
parents:
diff changeset
    68
const TInt KDefaultGranularity = 5;
7feec50967db 201003_02
hgs
parents:
diff changeset
    69
const TInt KDefaultExpandSize = 512;
7feec50967db 201003_02
hgs
parents:
diff changeset
    70
const TInt KCaMaxAttrLenght = 255;
7feec50967db 201003_02
hgs
parents:
diff changeset
    71
// MMC related constants
7feec50967db 201003_02
hgs
parents:
diff changeset
    72
_LIT( KCaAttrMmcId, "mmc_id" );
7feec50967db 201003_02
hgs
parents:
diff changeset
    73
_LIT( KCaMassStorage, "mass_storage" );
7feec50967db 201003_02
hgs
parents:
diff changeset
    74
_LIT( KCaMmcHistoryFname, "mmchistory" );
7feec50967db 201003_02
hgs
parents:
diff changeset
    75
7feec50967db 201003_02
hgs
parents:
diff changeset
    76
//Ca constants
7feec50967db 201003_02
hgs
parents:
diff changeset
    77
// ---------------------------------------------------------
7feec50967db 201003_02
hgs
parents:
diff changeset
    78
7feec50967db 201003_02
hgs
parents:
diff changeset
    79
7feec50967db 201003_02
hgs
parents:
diff changeset
    80
// CONSTANTS
7feec50967db 201003_02
hgs
parents:
diff changeset
    81
    
7feec50967db 201003_02
hgs
parents:
diff changeset
    82
const TUid KSatUid =
7feec50967db 201003_02
hgs
parents:
diff changeset
    83
    {
7feec50967db 201003_02
hgs
parents:
diff changeset
    84
    0x101F4CE0
7feec50967db 201003_02
hgs
parents:
diff changeset
    85
    };
7feec50967db 201003_02
hgs
parents:
diff changeset
    86
87
hgs
parents: 86
diff changeset
    87
const TUid KHsAppUid =
hgs
parents: 86
diff changeset
    88
    {
hgs
parents: 86
diff changeset
    89
    0x20022F35
hgs
parents: 86
diff changeset
    90
    };
hgs
parents: 86
diff changeset
    91
85
7feec50967db 201003_02
hgs
parents:
diff changeset
    92
const TInt KCenRepBufferSize = 255;
7feec50967db 201003_02
hgs
parents:
diff changeset
    93
//
7feec50967db 201003_02
hgs
parents:
diff changeset
    94
// Attributes commonly used for all items.
7feec50967db 201003_02
hgs
parents:
diff changeset
    95
// These are the attributes that are normally used when displaying a menu of items
7feec50967db 201003_02
hgs
parents:
diff changeset
    96
// in a menu UI. To get a consistent look of various items, it is recommended that
7feec50967db 201003_02
hgs
parents:
diff changeset
    97
// some of these attributes are properly set (at least one of the xxx_name, and
7feec50967db 201003_02
hgs
parents:
diff changeset
    98
// some kind of icon information for non-applications).
7feec50967db 201003_02
hgs
parents:
diff changeset
    99
// Note, however, that none of these is guaranteed to be set, or be used by a menu UI.
7feec50967db 201003_02
hgs
parents:
diff changeset
   100
// Menu clients always need to check that the necessary attributes are present.
7feec50967db 201003_02
hgs
parents:
diff changeset
   101
//
7feec50967db 201003_02
hgs
parents:
diff changeset
   102
_LIT( KCaAttrLongName, "long_name" ); ///< Long name.
7feec50967db 201003_02
hgs
parents:
diff changeset
   103
7feec50967db 201003_02
hgs
parents:
diff changeset
   104
// Built-in types and attributes.
7feec50967db 201003_02
hgs
parents:
diff changeset
   105
//
7feec50967db 201003_02
hgs
parents:
diff changeset
   106
//
7feec50967db 201003_02
hgs
parents:
diff changeset
   107
// Command strings.
7feec50967db 201003_02
hgs
parents:
diff changeset
   108
//
7feec50967db 201003_02
hgs
parents:
diff changeset
   109
7feec50967db 201003_02
hgs
parents:
diff changeset
   110
_LIT8( KCaCmdOpen, "open" ); ///< Open item.
7feec50967db 201003_02
hgs
parents:
diff changeset
   111
_LIT8( KCaCmdRemove, "remove" ); ///< Remove item.
7feec50967db 201003_02
hgs
parents:
diff changeset
   112
_LIT8( KCaCmdClose, "close" ); ///< Close item.
7feec50967db 201003_02
hgs
parents:
diff changeset
   113
7feec50967db 201003_02
hgs
parents:
diff changeset
   114
7feec50967db 201003_02
hgs
parents:
diff changeset
   115
//Properties in database
7feec50967db 201003_02
hgs
parents:
diff changeset
   116
7feec50967db 201003_02
hgs
parents:
diff changeset
   117
_LIT( KCaDbPropVersion, "Version" ); /// db version
7feec50967db 201003_02
hgs
parents:
diff changeset
   118
_LIT( KCaDbPropLanguage, "Language" ); // language of ca strings in db
7feec50967db 201003_02
hgs
parents:
diff changeset
   119
_LIT( KCaDbPropQMfile, "QMfile" ); // prefix of qm file used in translation 
7feec50967db 201003_02
hgs
parents:
diff changeset
   120
7feec50967db 201003_02
hgs
parents:
diff changeset
   121
7feec50967db 201003_02
hgs
parents:
diff changeset
   122
7feec50967db 201003_02
hgs
parents:
diff changeset
   123
_LIT(KComma, ",");
7feec50967db 201003_02
hgs
parents:
diff changeset
   124
// Prefix hex format
7feec50967db 201003_02
hgs
parents:
diff changeset
   125
_LIT(KHexFormat, "0x%X");
7feec50967db 201003_02
hgs
parents:
diff changeset
   126
7feec50967db 201003_02
hgs
parents:
diff changeset
   127
#endif // CADEF_H