uiservicetab/vimpstengine/tsrc/vimpstengine_ut/src/stubs/s_ximpidentity.h
changeset 15 81eeb8c83ce5
parent 0 5e5d6b214f4f
equal deleted inserted replaced
0:5e5d6b214f4f 15:81eeb8c83ce5
     1 /*
       
     2 * Copyright (c) 2006, 2007 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:  Interface for identity object.
       
    15 *
       
    16 */
       
    17 #ifndef MyMXIMPIdentityStub_H
       
    18 #define MyMXIMPIdentityStub_H
       
    19 
       
    20 #include <e32std.h>
       
    21 #include <ximpbase.h>
       
    22 #include <ximpdatamodelifids.hrh>
       
    23 #include <ximpidentity.h>
       
    24 
       
    25 _LIT( KTestIdentity, "TEST_IDENTITY" );
       
    26 
       
    27 /**
       
    28  * Interface for identity object.
       
    29  *
       
    30  * Identity objects are used to identify
       
    31  * presentities, presentity groups and
       
    32  * presentity group members, XIMP framework
       
    33  * client applications etc. entities in
       
    34  * XIMP Framework.
       
    35  *
       
    36  * @ingroup ximpdatamodelapi
       
    37  * @since S60 v3.2
       
    38  */
       
    39 class MyMXIMPIdentityStub : public CBase, public MXIMPIdentity
       
    40     {
       
    41 
       
    42 public:
       
    43 	
       
    44 	MyMXIMPIdentityStub();
       
    45 	
       
    46     /**
       
    47      * Public destructor.
       
    48      * Objects can be deleted through this interface.
       
    49      */
       
    50     ~MyMXIMPIdentityStub() ;
       
    51 
       
    52 
       
    53 public:
       
    54 
       
    55 
       
    56     /**
       
    57      * Returns identity string.
       
    58      *
       
    59      * @return The identity string.
       
    60      */
       
    61     const TDesC16& Identity() const ;
       
    62 
       
    63 
       
    64 
       
    65     /**
       
    66      * Sets identity.
       
    67      *
       
    68      * @param [in] aIdentity
       
    69      *        Identity string.
       
    70      *
       
    71      * @leave KErrNoMemory if failed to allocate memory.
       
    72      */
       
    73     void SetIdentityL(
       
    74                 const TDesC16& aIdentity ) ;
       
    75 
       
    76     
       
    77     const TAny* GetInterface(
       
    78                         TInt32 aInterfaceId,
       
    79                         TIfGetOps aOps ) const;
       
    80 
       
    81     TAny* GetInterface(
       
    82                         TInt32 aInterfaceId,
       
    83                         TIfGetOps aOps );
       
    84 
       
    85     TInt32 GetInterfaceId() const;
       
    86 private:
       
    87 	HBufC*  iIdentity;
       
    88 	
       
    89 };
       
    90 
       
    91 
       
    92 #endif // MyMXIMPIdentityStub_H