instantmessagesalert/tsrc/testinstantmsgalert/src/stubs/s_ximppresensitygroupcontentevent.cpp
branchRCL_3
changeset 28 3104fc151679
parent 27 2b7283837edb
child 29 9a48e301e94b
equal deleted inserted replaced
27:2b7283837edb 28:3104fc151679
     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: s_ximppresensitygroupcontentevent.cpp
       
    15 *
       
    16 */
       
    17 
       
    18 #include "s_ximppresensitygroupcontentevent.h"
       
    19 #include "s_ximpidentity.h"
       
    20 
       
    21 TInt32 gMXIMPPresentityGroupEventStubInterfaceId = 0;
       
    22 extern MyMXIMPIdentityStub gMXIMPIdentity; // already define in MPresentityPresenceEventStub
       
    23 
       
    24 const MXIMPIdentity& MPresentityGroupContentEventStub::GroupId() const
       
    25     {
       
    26     return gMXIMPIdentity;
       
    27     }
       
    28     
       
    29 TInt MPresentityGroupContentEventStub::NewMembersCount() const
       
    30     {
       
    31     return KErrNone;
       
    32     }
       
    33 
       
    34 const MPresentityGroupMemberInfo& MPresentityGroupContentEventStub::NewMember( 
       
    35     TInt /*aIndex*/ ) const
       
    36     {
       
    37     MPresentityGroupMemberInfo* info = NULL;
       
    38     return *info;
       
    39     }
       
    40 
       
    41 TInt MPresentityGroupContentEventStub::UpdatedMembersCount() const
       
    42     {
       
    43     return KErrNone;
       
    44     }
       
    45 
       
    46 const MPresentityGroupMemberInfo& MPresentityGroupContentEventStub::UpdatedMember( 
       
    47     TInt /*aIndex*/ ) const
       
    48     {
       
    49     MPresentityGroupMemberInfo* info = NULL;
       
    50     return *info;
       
    51     }
       
    52 
       
    53 TInt MPresentityGroupContentEventStub::DisappearedMembersCount() const
       
    54     {
       
    55     return KErrNone;
       
    56     }
       
    57 
       
    58 const MPresentityGroupMemberInfo& MPresentityGroupContentEventStub::DisappearedMember( 
       
    59     TInt /*aIndex*/ ) const
       
    60     {
       
    61     MPresentityGroupMemberInfo* info = NULL;
       
    62     return *info;
       
    63     }
       
    64 
       
    65 TInt MPresentityGroupContentEventStub::CurrentMembersCount() const
       
    66     {
       
    67     return KErrNone;
       
    68     }
       
    69 
       
    70 const MPresentityGroupMemberInfo& MPresentityGroupContentEventStub::CurrentMember( 
       
    71     TInt /*aIndex*/ ) const
       
    72     {
       
    73     MPresentityGroupMemberInfo* info = NULL;
       
    74     return *info;
       
    75     }
       
    76 
       
    77 const MXIMPDataSubscriptionState& MPresentityGroupContentEventStub::DataSubscriptionState() const
       
    78     {
       
    79     MXIMPDataSubscriptionState* state = NULL;
       
    80     return *state;
       
    81     }
       
    82 
       
    83 
       
    84 const TAny* MPresentityGroupContentEventStub::GetInterface(
       
    85                         TInt32 /*aInterfaceId*/,
       
    86                         TIfGetOps /*aOps*/ ) const
       
    87     {
       
    88     return this;
       
    89     }
       
    90 
       
    91  TAny* MPresentityGroupContentEventStub::GetInterface(
       
    92                         TInt32 /*aInterfaceId*/,
       
    93                         TIfGetOps /*aOps*/ )
       
    94     {
       
    95     return NULL;
       
    96     }
       
    97 
       
    98 TInt32 MPresentityGroupContentEventStub::GetInterfaceId() const
       
    99     {
       
   100     return gMXIMPPresentityGroupEventStubInterfaceId;
       
   101     }