homesync/contentmanager/mediaservant/inc/msconstants.h
branchIOP_Improvements
changeset 40 08b5eae9f9ff
parent 39 6369bfd1b60d
child 41 b4d83ea1d6e2
equal deleted inserted replaced
39:6369bfd1b60d 40:08b5eae9f9ff
     1 /*
       
     2 * Copyright (c) 2008 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:  Constant definitions
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef MSCONSTANTS_H
       
    20 #define MSCONSTANTS_H
       
    21 
       
    22 
       
    23 // INCLUDE FILES
       
    24 #include <e32std.h>
       
    25 
       
    26 
       
    27 // MediaServant UIDs
       
    28 const TUid KUidMediaServant = { 0x1028290B };
       
    29 
       
    30 //const TInt KMSMainViewIdValue = 1;
       
    31 const TUid KMSMainViewId = { 0x10282913 };
       
    32 //const TInt KMSFillViewIdValue = 2;
       
    33 const TUid KMSFillViewId = { 0x10282914 };
       
    34 //const TInt KMSSettingsViewIdValue = 3;
       
    35 //const TUid KMSSettingsViewId = { 0x10282915 };
       
    36 //const TInt KMSFillEditViewIdValue = 4;
       
    37 const TUid KMSFillEditViewId = { 0x10282915 };
       
    38 //const TInt KMSStoreListViewIdValue = 5;
       
    39 const TUid KMSStoreListViewId = { 0x10282916 };
       
    40 //const TInt KMSStoreSettingsViewIdValue = 6;
       
    41 const TUid KMSStoreSettingsViewId = { 0x10282917 };
       
    42 //const TInt KMSBrowseViewIdValue = 7;
       
    43 const TUid KMSBrowseViewId = { 0x10282918 };
       
    44 //const TInt KMSFillBrowseViewIdValue = 8;
       
    45 const TUid KMSFillBrowseViewId = { 0x10282919 };
       
    46 
       
    47 // Listbox format strings
       
    48 
       
    49 // Single graphic style listbox
       
    50 _LIT( KSingleGraphicStyleFormatString, "%d\t%S\t%d\t" );
       
    51 // Single graphic style listbox - no trailing icons
       
    52 _LIT( KSingleGraphicStyleFormatStringNoTrailIcons, "%d\t%S\t\t" );
       
    53 // Single graphic style listbox
       
    54 _LIT( KSingleStyleFormatString, "\t%S\t\t" );
       
    55 // Double large graphic style listbox
       
    56 _LIT( KDoubleLargeGraphicStyleFormatString, "%d\t%S\t%S\t");
       
    57 // Double large graphic style listbox (no secondary text)
       
    58 _LIT(KDoubleLargeGraphicStyleFormatStringEmpty, "%d\t%S\t\t");
       
    59 // Signle graphic style lis
       
    60 _LIT( KItemFormatString, "1\t%S");
       
    61 
       
    62 // Icon files
       
    63 _LIT( KAvkonMifFileName, "\\resource\\apps\\avkon2.mif" );
       
    64 _LIT( KMSMifFileName, "\\resource\\apps\\mediaservant.mif" );
       
    65 
       
    66 // TITLE PANE
       
    67 // CONSTANTS
       
    68 const TInt KMSTitleBufLength = 256 ; // for lenght.
       
    69 const TInt KMSDefaultTitleId = 0;
       
    70 
       
    71 // Setting item secondary text delimiter
       
    72 _LIT( KDelimiter, ",");
       
    73 
       
    74 // Time format strings
       
    75 _LIT(KDefaultFromDate, "19000000:000000.000000"); // 01.01.1900
       
    76 
       
    77 // File sizes
       
    78 const TInt KMSSize_0_MB = 0;
       
    79 const TInt KMSSize_1_MB = KMega;
       
    80 const TInt KMSSize_5_MB = 5*KMega;
       
    81 const TInt KMSSize_10_MB = 10*KMega;
       
    82 const TInt KMSSize_50_MB = 50*KMega;
       
    83 
       
    84 // Track lengths [s]
       
    85 const TInt KMSTrackLength_0_min = 0;
       
    86 const TInt KMSTrackLength_1_min = 60;
       
    87 const TInt KMSTrackLength_6_min = 360;
       
    88 const TInt KMSTrackLength_8_min = 480;
       
    89 const TInt KMSTrackLength_30_min = 1800;
       
    90 
       
    91 // Listbox tabulator defitions
       
    92 _LIT(KSlashT, "\t");
       
    93 _LIT(KZeroSlashT, "0\t");
       
    94 _LIT(KSPaceT, " ");
       
    95 
       
    96 
       
    97 // Array granularities
       
    98 const TInt KMetadataArrayGranularity = 5;
       
    99 
       
   100 // Default quota size [%]
       
   101 const TInt KHDDefaultQuota = 75;
       
   102 const TInt KMMCDefaultQuota = 90;
       
   103 
       
   104 // Default fill list size [MB]
       
   105 const TInt KDefaultListSize50 = 50;
       
   106 const TInt KDefaultListSize200 = 200;
       
   107 
       
   108 // Server statuses
       
   109 const TUint KServerNotActive = 0;
       
   110 const TUint KServerActive = 1;
       
   111 const TUint KServerRemoved = 2;
       
   112 
       
   113 // Settings plugin
       
   114 const TUid settinsPluginUid = { 0x10282912 };
       
   115 
       
   116 #endif      // MSCONSTANTS_H