ximpfw/core/srcdatamodel/ximpcontextclientinfoimp.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:  MXIMPContextClientInfo API object implementation.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef CXIMPPRESENCECONTEXTCLIENTINFOIMP_H
       
    19 #define CXIMPPRESENCECONTEXTCLIENTINFOIMP_H
       
    20 
       
    21 #include <s32strm.h>
       
    22 
       
    23 #include "ximpapidataobjbase.h"
       
    24 #include <ximpcontextclientinfo.h>
       
    25 
       
    26 
       
    27 class CXIMPIdentityImp;
       
    28 
       
    29 
       
    30 /**
       
    31  * MXIMPContextClientInfo API object implementation.
       
    32  *
       
    33  * @lib ximpdatamodel.dll
       
    34  * @since S60 v3.2
       
    35  */
       
    36 NONSHARABLE_CLASS( CXIMPContextClientInfoImp ): public CXIMPApiDataObjBase,
       
    37                                                         public MXIMPContextClientInfo
       
    38     {
       
    39 public:
       
    40     /** The class ID. */
       
    41     enum { KClassId = XIMPIMP_CLSID_CXIMPCONTEXTCLIENTINFOIMP };
       
    42 
       
    43 public:
       
    44 
       
    45     IMPORT_C static CXIMPContextClientInfoImp* NewLC();
       
    46     IMPORT_C static CXIMPContextClientInfoImp* NewL();
       
    47 
       
    48     virtual ~CXIMPContextClientInfoImp();
       
    49 
       
    50 private:
       
    51 
       
    52     CXIMPContextClientInfoImp();
       
    53     void ConstructL( const TDesC16& aClientId );
       
    54     void ConstructL();
       
    55     
       
    56     /**
       
    57      * @see CXIMPApiDataObjBase
       
    58      */
       
    59     XIMPIMP_DECLARE_DATAOBJ_BASE_PRIV_METHODS
       
    60 
       
    61 public: // From MXIMPBase
       
    62 
       
    63     /**
       
    64      * Implementation of MXIMPBase interface methods
       
    65      * @see MXIMPBase
       
    66      */
       
    67     XIMPIMP_DECLARE_IF_BASE_METHODS
       
    68     
       
    69    /**
       
    70      * @see CXIMPApiDataObjBase
       
    71      */
       
    72     XIMPIMP_DECLARE_DATAOBJ_BASE_METHODS
       
    73 
       
    74 
       
    75 public: // From MXIMPContextClientInfo
       
    76 
       
    77     const MXIMPIdentity& ClientId() const;
       
    78     void SetClientIdL( MXIMPIdentity* aIdentity );
       
    79     
       
    80 
       
    81 public: // New functions
       
    82 
       
    83     /**
       
    84      * Internalizes object data from given stream.
       
    85      * @param aStream Stream to read.
       
    86      */
       
    87     IMPORT_C void InternalizeL( RReadStream& aStream );
       
    88 
       
    89 
       
    90     /**
       
    91      * Tests if the given CXIMPContextClientInfoImp object matches
       
    92      * this one.
       
    93      * @param aServiceInfoImp An Object to match
       
    94      */
       
    95     IMPORT_C TBool Match( const CXIMPContextClientInfoImp* aClientInfoImp ) const;
       
    96 
       
    97 private: // data
       
    98 
       
    99     /**
       
   100      * ClientId
       
   101      */
       
   102     CXIMPIdentityImp* iClientId;
       
   103     };
       
   104 
       
   105 
       
   106 #endif // CXIMPPRESENCECONTEXTCLIENTINFOIMP_H