uiservicetab/vimpstengine/tsrc/vimpstengine_ut/src/stubs/s_presenceblockinfo.h
branchRCL_3
changeset 23 9a48e301e94b
parent 0 5e5d6b214f4f
equal deleted inserted replaced
22:3104fc151679 23:9a48e301e94b
       
     1 /*
       
     2 * Copyright (c) 2009 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 presence block info object.
       
    15 *
       
    16 */
       
    17 #ifndef MXIMPFWPRESENCEBLOCKINFOSTUB_H
       
    18 #define MXIMPFWPRESENCEBLOCKINFOSTUB_H
       
    19 
       
    20 #include <presenceblockinfo.h> 
       
    21 
       
    22 
       
    23 
       
    24 /**
       
    25  * Interface for presence block info object.
       
    26  *
       
    27  * Presence block info object presents single
       
    28  * presence block entry in the presence block list.
       
    29  * Presence block info object holds the identity
       
    30  * and display name information for the presence
       
    31  * block entry.
       
    32  *
       
    33  * @ingroup presencedatamodelapi
       
    34  * @since S60 v3.2
       
    35  */
       
    36 class MPresenceBlockInfoStub :public MPresenceBlockInfo 
       
    37     {
       
    38 
       
    39 public:
       
    40 
       
    41     /**
       
    42      * Returns identity of the blocked entity.
       
    43      *
       
    44      * @return The identity of the blocked entity.
       
    45      */
       
    46     const MXIMPIdentity& BlockedEntityId() const;
       
    47 
       
    48 
       
    49 
       
    50     /**
       
    51      * Returns displayname of the blocked entity.
       
    52      *
       
    53      * @return The displayname of the blocked entity.
       
    54      */
       
    55      const TDesC16& BlockedEntityDisplayName() const;
       
    56 
       
    57 
       
    58 
       
    59     /**
       
    60      * Sets identity of the blocked entity.
       
    61      *
       
    62      * @param [in] aIdentity
       
    63      *        Identity of the blocked entity.
       
    64      *        Ownership of the argument is transfered to
       
    65      *        callee, if method succeeds without a leave.
       
    66      *
       
    67      * @leave KErrNoMemory if failed to allocate memory.
       
    68      * @leave KErrArgument if NULL argument were provided.
       
    69      */
       
    70      void SetBlockedEntityIdL(
       
    71                 MXIMPIdentity* aIdentity );
       
    72 
       
    73 
       
    74     /**
       
    75      * Sets displayname of the blocked entity.
       
    76      *
       
    77      * @param [in] aDisplayName
       
    78      *        New display name value.
       
    79      *
       
    80      * @leave KErrNoMemory if failed to allocate memory.
       
    81      */
       
    82     void SetBlockedEntityDisplayNameL(
       
    83                 const TDesC16& aDisplayName );
       
    84     
       
    85     const TAny* GetInterface(
       
    86                             TInt32 aInterfaceId,
       
    87                             TIfGetOps aOps ) const;
       
    88 
       
    89         TAny* GetInterface(
       
    90                             TInt32 aInterfaceId,
       
    91                             TIfGetOps aOps );
       
    92 
       
    93         TInt32 GetInterfaceId() const;
       
    94 
       
    95     };
       
    96 
       
    97 
       
    98 #endif // MXIMPFWPRESENCEBLOCKINFOSTUB_H
       
    99 
       
   100 
       
   101