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