instantmessagesalert/tsrc/testinstantmsgalert/src/stubs/s_presencebuddyinfo2.h
branchRCL_3
changeset 22 3104fc151679
parent 21 2b7283837edb
child 23 9a48e301e94b
equal deleted inserted replaced
21:2b7283837edb 22:3104fc151679
     1 /*
       
     2 * s_presencebuddyinfo2.h :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_presencebuddyinfo2.h
       
    15 *
       
    16 */
       
    17 #ifndef MPRESENCEBUDDYINFO2STUB_H
       
    18 #define MPRESENCEBUDDYINFO2STUB_H
       
    19 
       
    20 #include <mpresencebuddyinfo2.h>
       
    21 
       
    22 class MPresenceBuddyInfo2Stub : public MPresenceBuddyInfo2,
       
    23                                 public CBase
       
    24     {
       
    25 public:
       
    26     static MPresenceBuddyInfo2Stub* NewStubL();
       
    27 
       
    28     void SetIdentityL( const TDesC& aBuddyId );
       
    29 
       
    30     TPtrC BuddyId( ) const ;        
       
    31 
       
    32     void SetAvailabilityL( 
       
    33             TAvailabilityValues aAvailability,
       
    34             const TDesC& aAvailabilityText ) ;
       
    35 
       
    36     TAvailabilityValues Availability( ) ;         
       
    37 
       
    38     TPtrC AvailabilityText( );           
       
    39 
       
    40 
       
    41     void SetAvatarL( const TDesC8& aAvatar ) ;
       
    42 
       
    43     TPtrC8 Avatar( ) ;             
       
    44 
       
    45     void SetStatusMessageL( 
       
    46             const TDesC& aStatusMessage ) ; 
       
    47 
       
    48     TPtrC StatusMessage( ) ;     
       
    49 
       
    50     void SetAnyFieldL( 
       
    51             const TDesC16& aKey,
       
    52             const TDesC8& aValue ) ;
       
    53 
       
    54     TPtrC8 GetAnyField( 
       
    55             const TDesC16& aKey ); 
       
    56 
       
    57     void GetFieldKeysL( 
       
    58             CDesCArrayFlat& aKeys ) ;
       
    59 
       
    60     void RemoveField(const TDesC& aKey );      
       
    61 
       
    62     TBool EqualsIdentity(
       
    63             const MPresenceBuddyInfo2& aOtherInstance ) const ;
       
    64 
       
    65     void ExternalizeL( RWriteStream& aStream ) const ;
       
    66 
       
    67     void InternalizeL( RReadStream& aStream ) ;   
       
    68     ~MPresenceBuddyInfo2Stub()
       
    69                 {
       
    70                 iIds.ResetAndDestroy();
       
    71                 iIds.Close();
       
    72                 iValues.ResetAndDestroy();
       
    73                 iValues.Close();
       
    74                 }
       
    75     
       
    76 private:
       
    77     RPointerArray<HBufC> iIds;  
       
    78     RPointerArray<HBufC8> iValues; 
       
    79     };
       
    80 
       
    81 
       
    82 
       
    83 #endif //MPRESENCEBUDDYINFO2STUB_H
       
    84 
       
    85 
       
    86