supl/locationomasuplprotocolhandler/syncmlprovhandler/inc/epos_comasupldmparam.h
changeset 0 667063e416a2
equal deleted inserted replaced
-1:000000000000 0:667063e416a2
       
     1 /*
       
     2 * Copyright (c) 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:   COMASuplDMParam Class definition
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #ifndef C_COMASUPLDMPARAM_H
       
    22 #define C_COMASUPLDMPARAM_H
       
    23 
       
    24 
       
    25 #include <e32base.h>
       
    26 
       
    27 
       
    28 /**
       
    29  * COMASuplDMParam represents OMA SUPL DM Settings
       
    30  * @since S60 v3.1
       
    31  */
       
    32 class COMASuplDMParam : public CBase
       
    33     {
       
    34 public: // enums
       
    35 
       
    36     typedef enum
       
    37         {
       
    38         EGet,
       
    39         EAdd,
       
    40         EDelete,
       
    41         EReplace,
       
    42         EExec,
       
    43         ECopy
       
    44         } TCommand;
       
    45 
       
    46 public:
       
    47 
       
    48     /**
       
    49      * Factory function that instantiates a new object of COMASuplDMParam
       
    50      *
       
    51      * @since S60 v3.0
       
    52      */
       
    53     static COMASuplDMParam* NewL(const TDesC8& aURI,
       
    54                                 const TDesC8& aLUID, 
       
    55                                 const TDesC8* aObject, 
       
    56                                 const TDesC8& aType, 
       
    57                                 const TInt aStatusRef,
       
    58                                 const TInt aResultRef,
       
    59                                 const TCommand aCommand);
       
    60 
       
    61     /**
       
    62      * Destructor
       
    63      *
       
    64      */
       
    65     ~COMASuplDMParam();
       
    66 
       
    67     /**
       
    68      * Retrieves SUPL DM parameter values
       
    69      *
       
    70      * @since S60 v3.1
       
    71      */
       
    72     void Get(HBufC8*& aURI,
       
    73                 HBufC8*& aLUID,
       
    74                 HBufC8*& aObject,
       
    75                 HBufC8*& aType, 
       
    76                 TInt& aStatusRef,
       
    77                 TInt& aResultRef,
       
    78                 TCommand& aCommand);
       
    79 
       
    80     /**
       
    81      * Initializes SUPL DM parameter values
       
    82      *
       
    83      * @since S60 v3.1
       
    84      */
       
    85     void Set(HBufC8* aURI,
       
    86                 HBufC8* aLUID,
       
    87                 HBufC8* aObject,
       
    88                 HBufC8* aType, 
       
    89                 TInt aStatusRef,
       
    90                 TInt aResultRef,
       
    91                 TCommand aCommand);
       
    92 
       
    93 private:
       
    94 
       
    95     /**
       
    96      * Constructor
       
    97      * 
       
    98      */
       
    99     COMASuplDMParam();
       
   100 
       
   101     /**
       
   102      * 2nd phase constuctor for instantiating member variables
       
   103      *
       
   104      * @since S60 v3.0
       
   105      */
       
   106     void ConstructL(const TDesC8& aURI,
       
   107                         const TDesC8& aLUID, 
       
   108                         const TDesC8* aObject, 
       
   109                         const TDesC8& aType, 
       
   110                         const TInt aStatusRef,
       
   111                         const TInt aResultRef,
       
   112                         const TCommand aCommand);
       
   113 
       
   114 private:
       
   115 
       
   116     /**
       
   117      * URI of the SUPL setting parameter
       
   118      */
       
   119     HBufC8*     iURI;
       
   120 
       
   121     /**
       
   122      * UID
       
   123      */
       
   124     HBufC8*     iLUID;
       
   125 
       
   126     /**
       
   127      * Data of the object
       
   128      */
       
   129     HBufC8*     iObject;
       
   130 
       
   131     /**
       
   132      * MIME type
       
   133      */    
       
   134     HBufC8*     iType;
       
   135 
       
   136     /**
       
   137      * Command reference
       
   138      */
       
   139     TInt        iStatusRef;
       
   140 
       
   141     /**
       
   142      * Result code
       
   143      */    
       
   144     TInt        iResultRef;
       
   145 
       
   146     /**
       
   147      * Type of command
       
   148      */
       
   149     TCommand    iCommand;
       
   150 
       
   151     };
       
   152 
       
   153 #endif  // C_COMASUPLDMPARAM_H