uiservicetab/vimpstengine/tsrc/vimpstengine_ut/src/stubs/s_vimpststorageserviceview.cpp
branchRCL_3
changeset 28 3104fc151679
parent 27 2b7283837edb
child 29 9a48e301e94b
equal deleted inserted replaced
27:2b7283837edb 28:3104fc151679
     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:  
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #include "s_vimpststorageserviceview.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 
       
    30     }
       
    31 
       
    32 void vimpstserviceview_stub::RemoveObserver( MVIMPSTStorageContactsObserver* aObserver )
       
    33     {
       
    34     
       
    35     }
       
    36 
       
    37 
       
    38 MVIMPSTStorageContact* vimpstserviceview_stub::FindContactByUserId( const TDesC& aUserId )
       
    39     {
       
    40     return NULL;
       
    41     }
       
    42 
       
    43 
       
    44 TInt vimpstserviceview_stub::ListCount() const
       
    45 {
       
    46 return 1;
       
    47 }
       
    48 
       
    49 MVIMPSTStorageContactList& vimpstserviceview_stub::ListAt( TInt aIndex ) const 
       
    50 {
       
    51 MVIMPSTStorageContactList *abc = NULL;
       
    52     
       
    53 return *abc;
       
    54 }
       
    55 
       
    56 
       
    57 MVIMPSTStorageContactList* vimpstserviceview_stub::FindContactList( const TDesC& aListId )
       
    58     {
       
    59     return NULL;
       
    60     }
       
    61 
       
    62 MVIMPSTStorageContactList* vimpstserviceview_stub::CreateContactListL( const TDesC& aContactListId, 
       
    63         const TDesC& aDisplayName ) 
       
    64     {
       
    65     MVIMPSTStorageContactList *abc = NULL;
       
    66         
       
    67     return abc;
       
    68     }
       
    69 
       
    70 void vimpstserviceview_stub::RemoveContactList( const TDesC& aContactListId )
       
    71     {
       
    72     
       
    73     }
       
    74 
       
    75 
       
    76 TInt vimpstserviceview_stub::ContactCount(TBool aSkipOfflineContacts ) const
       
    77 {
       
    78 return 0;
       
    79 }
       
    80 
       
    81 
       
    82 
       
    83 MVIMPSTStorageContact* vimpstserviceview_stub::UpdatePresenceL(const TDesC& aContactId, 
       
    84         TVIMPSTEnums::TOnlineStatus aStatus, 
       
    85         const TDesC& aStatusText,
       
    86         const TDesC8& aAvatarData,
       
    87         TBool aIsClearingAvatar ) 
       
    88     {
       
    89     return NULL;
       
    90     }
       
    91 
       
    92 MVIMPSTStorageContact* vimpstserviceview_stub::UpdateAvatarL(const TDesC& aContactId,
       
    93         const TDesC8& aAvatarData )
       
    94     {
       
    95     return NULL;
       
    96     }
       
    97 
       
    98 MVIMPSTStorageContact* vimpstserviceview_stub::CreateNewContactL(const TDesC& aUserId, 
       
    99         const TDesC& aDisplayName,
       
   100         TBool aIsInvitationItem ,
       
   101         TBool aInvitationAutoAccept)
       
   102     {
       
   103     MVIMPSTStorageContact* contact = NULL;
       
   104     return  contact;
       
   105     }
       
   106 
       
   107 TInt vimpstserviceview_stub::CreateNewContactFromRetrivedIdL(  TInt aIndexToUse  )
       
   108     {
       
   109     return 0;
       
   110     }
       
   111 
       
   112 TInt vimpstserviceview_stub::DeleteNewContactFromRetrivedIdL(  TInt aIndexToUse  )
       
   113     {
       
   114     return 0;
       
   115     }
       
   116 
       
   117 TInt vimpstserviceview_stub::RemoveContactL( MVIMPSTStorageContact* aContact  )
       
   118     {
       
   119     return 0;
       
   120     }
       
   121 
       
   122 
       
   123 void vimpstserviceview_stub::CreateNewFetchContactsL( RArray <TPtrC> &aFirstNameList, 
       
   124         RArray <TPtrC> &aServiceField )
       
   125     {
       
   126     
       
   127     }
       
   128 
       
   129 
       
   130 TBool  vimpstserviceview_stub::IsLocalStore() const
       
   131 {
       
   132 return ETrue;
       
   133 }
       
   134 
       
   135 
       
   136 TInt vimpstserviceview_stub::RetriveLinkXSPIdsL(const TDesC8& aContactPackLink )
       
   137     {
       
   138     return 0;
       
   139     }
       
   140 const TDesC& vimpstserviceview_stub::GetRetrieveXSPIdL(TInt aIndex )
       
   141     {
       
   142     return KNullDesC();
       
   143     }
       
   144 
       
   145 MVIMPSTStorageContact* vimpstserviceview_stub::FindContactByLink(const MVPbkContactLink& aContactLink )
       
   146     {
       
   147     return NULL;
       
   148     }
       
   149 
       
   150 
       
   151 void vimpstserviceview_stub::Sort( const TDesC& aContactListId)
       
   152     {
       
   153     
       
   154     }
       
   155 
       
   156 MVIMPSTStorageContact& vimpstserviceview_stub::OwnContactL() 
       
   157     {
       
   158     MVIMPSTStorageContact *abc = NULL;
       
   159         
       
   160     return *abc;
       
   161     }
       
   162 
       
   163 void vimpstserviceview_stub::DeleteDatabaseL() 
       
   164     {
       
   165     
       
   166     }
       
   167 
       
   168 void vimpstserviceview_stub::SetOwnUserIdL(const TDesC& aUserId ) 
       
   169     {
       
   170     
       
   171     }
       
   172 
       
   173 void vimpstserviceview_stub::SetUnnamedTextL(HBufC* aUnnamedText )
       
   174     {
       
   175     
       
   176     }
       
   177 
       
   178 
       
   179 
       
   180 // End of File