ximpfw/core/srcdatamodel/ximpstatusimp.h
changeset 0 e6b17d312c8b
equal deleted inserted replaced
-1:000000000000 0:e6b17d312c8b
       
     1 /*
       
     2 * Copyright (c) 2006 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:  MXIMPStatus API object implementation.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef CXIMPSTATUSIMP_H
       
    19 #define CXIMPSTATUSIMP_H
       
    20 
       
    21 #include "ximpapidataobjbase.h"
       
    22 #include <ximpstatus.h>
       
    23 #include <s32strm.h>
       
    24 
       
    25 
       
    26 /**
       
    27  * MXIMPStatus API object implementation.
       
    28  *
       
    29  * @lib ximpdatamodel.dll
       
    30  * @since S60 v3.2
       
    31  */
       
    32 NONSHARABLE_CLASS( CXIMPStatusImp ): public CXIMPApiDataObjBase,
       
    33                                      public MXIMPStatus
       
    34     {
       
    35 public:
       
    36     /** The class ID. */
       
    37     enum { KClassId = XIMPIMP_CLSID_CXIMPSTATUSIMP };
       
    38 
       
    39 public:
       
    40 
       
    41     IMPORT_C static CXIMPStatusImp* NewLC();
       
    42     IMPORT_C static CXIMPStatusImp* NewL();
       
    43     virtual ~CXIMPStatusImp();
       
    44 
       
    45 
       
    46 private:
       
    47 
       
    48     CXIMPStatusImp();
       
    49     void ConstructL();
       
    50 
       
    51     /**
       
    52      * @see CXIMPApiDataObjBase
       
    53      */
       
    54     XIMPIMP_DECLARE_DATAOBJ_BASE_PRIV_METHODS
       
    55 
       
    56 public: // From MXIMPBase
       
    57 
       
    58     /**
       
    59      * Implementation of MXIMPBase interface methods
       
    60      * @see MXIMPBase
       
    61      */
       
    62     XIMPIMP_DECLARE_IF_BASE_METHODS
       
    63 
       
    64     /**
       
    65      * @see CXIMPApiDataObjBase
       
    66      */
       
    67     XIMPIMP_DECLARE_DATAOBJ_BASE_METHODS
       
    68 
       
    69 public: // From MXIMPStatus
       
    70 
       
    71     /**
       
    72      * Implementation of MXIMPStatus interface methods
       
    73      * @see MXIMPStatus
       
    74      */
       
    75     TInt ResultCode() const;
       
    76     TInt ProtocolResultCode() const;
       
    77     const TDesC16& ProtocolResultDescription() const;
       
    78 
       
    79     void SetResultCode( TInt aCode );
       
    80     void SetProtocolResultCode( TInt aCode );
       
    81     void SetProtocolResultDescriptionL( const TDesC16& aDescription );
       
    82 
       
    83 
       
    84 
       
    85 
       
    86 public: // New functions
       
    87 
       
    88     /**
       
    89      * Internalizes object data from given stream.
       
    90      * @param aStream Stream to read.
       
    91      */
       
    92     IMPORT_C void InternalizeL( RReadStream& aStream );
       
    93 
       
    94 private: // data
       
    95 
       
    96 
       
    97     /**
       
    98      * Result code.
       
    99      * Own.
       
   100      */
       
   101     TInt iResultCode;
       
   102 
       
   103 
       
   104     /**
       
   105      * Protocol result code.
       
   106      * Own.
       
   107      */
       
   108     TInt iProtocolResultCode;
       
   109 
       
   110 
       
   111     /**
       
   112      * Protocol description.
       
   113      * Own.
       
   114      */
       
   115     RBuf iProtocolResultDescription;
       
   116 
       
   117     };
       
   118 
       
   119 
       
   120 #endif // CXIMPSTATUSIMP_H
       
   121 
       
   122