uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/src/stub/s_vimpststorageserviceview.cpp
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:  s_enginecontmgtextfeatures.cpp
       
    15 *
       
    16 */
       
    17 
       
    18 #include "s_vimpststorageserviceview.h"
       
    19 #include "s_vimpststoragecontact.h"
       
    20 
       
    21 MVIMPSTStorageServiceView* vimpstserviceview_stub::NewL()
       
    22     {
       
    23     MVIMPSTStorageServiceView* ob = new(ELeave)vimpstserviceview_stub;
       
    24         return ob;
       
    25     }
       
    26 
       
    27 void vimpstserviceview_stub::AddObserverL( MVIMPSTStorageContactsObserver* aObserver ) 
       
    28     {
       
    29     User::LeaveIfError( iContactObservers.Append( aObserver ) );    
       
    30     }
       
    31 
       
    32 void vimpstserviceview_stub::RemoveObserver( MVIMPSTStorageContactsObserver* aObserver )
       
    33     {
       
    34     iContactObservers.Remove( 0 );
       
    35     iContactObservers.Compress();
       
    36     }
       
    37 
       
    38 
       
    39 MVIMPSTStorageContact* vimpstserviceview_stub::FindContactByUserId( const TDesC& aUserId )
       
    40     {
       
    41     if(aUserId.Compare(_L("dummy@presence"))==0)
       
    42         {
       
    43     MVIMPSTStorageContact* contact = vimpststoragecontact_stub::NewL();
       
    44     return contact;
       
    45         }
       
    46     return NULL;
       
    47     }
       
    48 
       
    49 
       
    50 TInt vimpstserviceview_stub::ListCount() const
       
    51 {
       
    52 return 1;
       
    53 }
       
    54 
       
    55 MVIMPSTStorageContactList& vimpstserviceview_stub::ListAt( TInt aIndex ) const 
       
    56 {
       
    57 MVIMPSTStorageContactList *abc = NULL;
       
    58     
       
    59 return *abc;
       
    60 }
       
    61 
       
    62 
       
    63 MVIMPSTStorageContactList* vimpstserviceview_stub::FindContactList( const TDesC& aListId )
       
    64     {
       
    65     return NULL;
       
    66     }
       
    67 
       
    68 MVIMPSTStorageContactList* vimpstserviceview_stub::CreateContactListL( const TDesC& aContactListId, 
       
    69         const TDesC& aDisplayName ) 
       
    70     {
       
    71     MVIMPSTStorageContactList *abc = NULL;
       
    72         
       
    73     return abc;
       
    74     }
       
    75 
       
    76 void vimpstserviceview_stub::RemoveContactList( const TDesC& aContactListId )
       
    77     {
       
    78     
       
    79     }
       
    80 
       
    81 
       
    82 TInt vimpstserviceview_stub::ContactCount(TBool aSkipOfflineContacts ) const
       
    83 {
       
    84 return 0;
       
    85 }
       
    86 
       
    87 
       
    88 
       
    89 MVIMPSTStorageContact* vimpstserviceview_stub::UpdatePresenceL(const TDesC& aContactId, 
       
    90         TVIMPSTEnums::TOnlineStatus aStatus, 
       
    91         const TDesC& aStatusText,
       
    92         const TDesC8& aAvatarData,
       
    93         TBool aIsClearingAvatar ) 
       
    94     {
       
    95     return NULL;
       
    96     }
       
    97 
       
    98 MVIMPSTStorageContact* vimpstserviceview_stub::UpdateAvatarL(const TDesC& aContactId,
       
    99         const TDesC8& aAvatarData )
       
   100     {
       
   101     return NULL;
       
   102     }
       
   103 
       
   104 MVIMPSTStorageContact* vimpstserviceview_stub::CreateNewContactL(const TDesC& aUserId, 
       
   105         const TDesC& aDisplayName,
       
   106         TBool aIsInvitationItem ,
       
   107         TBool aInvitationAutoAccept)
       
   108     {
       
   109     MVIMPSTStorageContact* contact = NULL;
       
   110     return  contact;
       
   111     }
       
   112 
       
   113 TInt vimpstserviceview_stub::CreateNewContactFromRetrivedIdL(  TInt aIndexToUse  )
       
   114     {
       
   115     return 1;
       
   116     }
       
   117 
       
   118 TInt vimpstserviceview_stub::DeleteNewContactFromRetrivedIdL(  TInt aIndexToUse  )
       
   119     {
       
   120     return 0;
       
   121     }
       
   122 
       
   123 TInt vimpstserviceview_stub::RemoveContactL( MVIMPSTStorageContact* aContact  )
       
   124     {
       
   125     return 0;
       
   126     }
       
   127 
       
   128 
       
   129 void vimpstserviceview_stub::CreateNewFetchContactsL( RArray <TPtrC> &aFirstNameList, 
       
   130         RArray <TPtrC> &aServiceField )
       
   131     {
       
   132     
       
   133     }
       
   134 
       
   135 
       
   136 TBool  vimpstserviceview_stub::IsLocalStore() const
       
   137 {
       
   138 return ETrue;
       
   139 }
       
   140 
       
   141 
       
   142 TInt vimpstserviceview_stub::RetriveLinkXSPIdsL(const TDesC8& aContactPackLink )
       
   143     {
       
   144     return 3;
       
   145     }
       
   146 const TDesC& vimpstserviceview_stub::GetRetrieveXSPIdL(TInt aIndex )
       
   147     {
       
   148     if(aIndex ==0)
       
   149         {
       
   150         _LIT(KText1,"blocked@presence");
       
   151         return KText1();
       
   152         }
       
   153     if(aIndex ==1)
       
   154         {
       
   155         _LIT(KText2,"dummy@presence");
       
   156         return KText2();
       
   157         }
       
   158     if(aIndex ==2)
       
   159         {
       
   160         _LIT(KText3,"contact@presence");
       
   161         return KText3();
       
   162         }
       
   163 
       
   164     }
       
   165 
       
   166 MVIMPSTStorageContact* vimpstserviceview_stub::FindContactByLink(const MVPbkContactLink& aContactLink )
       
   167     {
       
   168     return NULL;
       
   169     }
       
   170 
       
   171 
       
   172 void vimpstserviceview_stub::Sort( const TDesC& aContactListId)
       
   173     {
       
   174     
       
   175     }
       
   176 
       
   177 MVIMPSTStorageContact& vimpstserviceview_stub::OwnContactL() 
       
   178     {
       
   179     MVIMPSTStorageContact *abc = vimpststoragecontact_stub::NewL();
       
   180         
       
   181     return *abc;
       
   182     }
       
   183 
       
   184 void vimpstserviceview_stub::DeleteDatabaseL() 
       
   185     {
       
   186     
       
   187     }
       
   188 
       
   189 void vimpstserviceview_stub::SetOwnUserIdL(const TDesC& aUserId ) 
       
   190     {
       
   191     
       
   192     }
       
   193 
       
   194 void vimpstserviceview_stub::SetUnnamedTextL(HBufC* aUnnamedText )
       
   195     {
       
   196     
       
   197     }
       
   198 
       
   199 
       
   200 
       
   201 // End of File