ncdengine/provider/server/inc/ncdreportdefines.h
changeset 4 32704c33136d
equal deleted inserted replaced
-1:000000000000 4:32704c33136d
       
     1 /*
       
     2 * Copyright (c) 2007-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:  
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_NCDREPORTDEFINES_H
       
    20 #define C_NCDREPORTDEFINES_H
       
    21 
       
    22 #include <e32err.h>
       
    23 
       
    24 typedef TInt TNcdReportId;
       
    25 const TInt KNcdReportIdLength16Bit = 11;
       
    26 
       
    27 const TNcdReportId KNcdReportNotSupported = KErrNotSupported;
       
    28 
       
    29 enum TNcdReportType 
       
    30     {
       
    31     ENcdReportDownload,
       
    32     ENcdReportOmaDownload,
       
    33     ENcdReportInstall
       
    34     };
       
    35 
       
    36 
       
    37 /**
       
    38  * Report status enumerations
       
    39  */
       
    40 enum TNcdReportStatus 
       
    41     {
       
    42     ENcdReportNone,
       
    43     ENcdReportCreate,
       
    44     ENcdReportStart,
       
    45     ENcdReportPause,
       
    46     ENcdReportResume,
       
    47     ENcdReportCancel,
       
    48     ENcdReportFail,
       
    49     ENcdReportSuccess
       
    50     };
       
    51 
       
    52 enum TNcdReportTimeStamps 
       
    53     {    
       
    54     /**
       
    55      * Timestamp of the latest start
       
    56      */
       
    57     ENcdReportTimeStart,
       
    58     
       
    59     /**
       
    60      * Timestamp of the latest stop
       
    61      */
       
    62     ENcdReportTimeStop,
       
    63     /**
       
    64      * Total elapsed time in seconds from the
       
    65      * first start to the latest stop
       
    66      */
       
    67     ENcdReportTimeTotal,    
       
    68     
       
    69     /**
       
    70      * Internal, keep this last
       
    71      */
       
    72     ENcdReportTimeInternal
       
    73     };
       
    74 
       
    75 
       
    76 enum TNcdReportAttribute
       
    77     {
       
    78     ENcdReportAttributeReportUri = 0,
       
    79     ENcdReportAttributeReportNamespace,
       
    80     ENcdReportAttributeGenericId,
       
    81     ENcdReportAttributeReportBeingSent,
       
    82     ENcdReportAttributeLatestSentReport,
       
    83     ENcdReportAttributeIsUsed,
       
    84     ENcdReportAttributeSendable,
       
    85     // Keep this last
       
    86     ENcdReportAttributeInternal
       
    87     };
       
    88 
       
    89 enum TNcdReportBundleMatch
       
    90     {
       
    91     ENcdReportBundleUriMatch = -1,
       
    92     ENcdReportBundleNoMatch,
       
    93     ENcdReportBundleMatch
       
    94     };
       
    95 
       
    96 /**
       
    97  * Download report status codes
       
    98  */
       
    99 const TInt KNcdDownloadReportSuccess = 1000;
       
   100 const TInt KNcdDownloadReportPause   = 1001;
       
   101 const TInt KNcdDownloadReportCancel  = 1002;
       
   102 const TInt KNcdDownloadReportFail    = 1003;
       
   103 const TInt KNcdDownloadReportCrash   = 1004;
       
   104 
       
   105 const TInt KNcdReportDataType = 1;
       
   106 
       
   107 /**
       
   108  * Not supported
       
   109  */
       
   110 const TInt KNcdDownloadReportNotSupported = KErrNotSupported;
       
   111 
       
   112 
       
   113 /**
       
   114  * OMA report bodies
       
   115  */
       
   116 _LIT8( KNcdReportOmaSuccess, "900 Success" );
       
   117 _LIT8( KNcdReportOmaCancel, "902 User Cancelled" );
       
   118 
       
   119 
       
   120 
       
   121 #endif // C_NCDREPORTDEFINES_H