uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/src/stub/s_imsubservice.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:  s_enginecontmgtextfeatures.cpp
       
    15 *
       
    16 */
       
    17 
       
    18 // INCLUDE FILES
       
    19 #include "s_imsubservice.h"
       
    20 
       
    21 //Presence Observer
       
    22 //#include "mvimpstenginepresencesubserviceeventobserver.h"
       
    23 
       
    24 
       
    25 
       
    26 // ================= MEMBER FUNCTIONS =======================
       
    27 
       
    28 // ---------------------------------------------------------------------------
       
    29 // CVIMPSTEnginePresenceSubService_Stub::
       
    30 //      CVIMPSTEnginePresenceSubService_Stub()
       
    31 // ---------------------------------------------------------------------------
       
    32 //
       
    33 CVIMPSTEngineImSubService_Stub::CVIMPSTEngineImSubService_Stub(  ) 
       
    34         {
       
    35         }
       
    36 
       
    37 // ---------------------------------------------------------------------------
       
    38 // CVIMPSTEnginePresenceSubService_Stub::ConstructL()
       
    39 // ---------------------------------------------------------------------------
       
    40 //
       
    41 void CVIMPSTEngineImSubService_Stub::ConstructL()
       
    42     {
       
    43    
       
    44 
       
    45     }
       
    46 
       
    47 // ---------------------------------------------------------------------------
       
    48 // CVIMPSTEnginePresenceSubService_Stub::NewL()
       
    49 // ---------------------------------------------------------------------------
       
    50 //
       
    51 CVIMPSTEngineImSubService_Stub* 
       
    52 CVIMPSTEngineImSubService_Stub::NewL(  )
       
    53     {
       
    54     CVIMPSTEngineImSubService_Stub* self = NewLC();
       
    55     CleanupStack::Pop(self);
       
    56     return self;
       
    57     }
       
    58 
       
    59 // ---------------------------------------------------------------------------
       
    60 // CVIMPSTEnginePresenceSubService_Stub::NewLC()
       
    61 // ---------------------------------------------------------------------------
       
    62 //
       
    63 CVIMPSTEngineImSubService_Stub* 
       
    64 CVIMPSTEngineImSubService_Stub::NewLC( )
       
    65     {
       
    66     CVIMPSTEngineImSubService_Stub* self =
       
    67     new (ELeave) CVIMPSTEngineImSubService_Stub( );
       
    68     CleanupStack::PushL(self);
       
    69     self->ConstructL();
       
    70     return self;
       
    71     }
       
    72 
       
    73 // ---------------------------------------------------------------------------
       
    74 // CVIMPSTEnginePresenceSubService_Stub::
       
    75 //      ~CVIMPSTEnginePresenceSubService_Stub()
       
    76 // ---------------------------------------------------------------------------
       
    77 //
       
    78 CVIMPSTEngineImSubService_Stub::~CVIMPSTEngineImSubService_Stub()
       
    79     {
       
    80    
       
    81     }
       
    82 
       
    83 
       
    84 TVIMPSTEnums::TVIMPSTRegistrationState CVIMPSTEngineImSubService_Stub::SubServiceState() const
       
    85     {
       
    86     return TVIMPSTEnums::ESVCERegistered;
       
    87     }
       
    88 
       
    89 // ---------------------------------------------------------------------------
       
    90 // CVIMPSTEnginePresenceSubService_Stub::
       
    91 //      Type()
       
    92 // ---------------------------------------------------------------------------
       
    93 //
       
    94 
       
    95 TVIMPSTEnums::SubServiceType CVIMPSTEngineImSubService_Stub::Type() const
       
    96     {               
       
    97     return TVIMPSTEnums::EPresence;
       
    98     } 
       
    99 
       
   100 
       
   101 
       
   102    
       
   103 
       
   104         /**
       
   105         * @see MVIMPSTIMSubService
       
   106         */
       
   107         void CVIMPSTEngineImSubService_Stub::RegisterChatObserver(MVIMPSTEngineIMSubServiceEventObserver* aObserver)
       
   108             {
       
   109             
       
   110             }
       
   111 
       
   112         /**
       
   113         * @see MVIMPSTIMSubService
       
   114         */
       
   115         void CVIMPSTEngineImSubService_Stub::UnRegisterChatObserver(MVIMPSTEngineIMSubServiceEventObserver* aObserver)
       
   116             {
       
   117             
       
   118             }
       
   119 
       
   120         /**
       
   121         * @see MVIMPSTIMSubService
       
   122         */
       
   123         TInt CVIMPSTEngineImSubService_Stub::GetUnreadCountL(const TDesC& aSender)
       
   124         {
       
   125         return 0;
       
   126         }
       
   127         
       
   128 
       
   129 
       
   130         /**
       
   131         * @see MVIMPSTIMSubService
       
   132         */
       
   133         TBool CVIMPSTEngineImSubService_Stub::IsConversationExistL(const TDesC& aRecipientId) const 
       
   134         {
       
   135         if(aRecipientId.Length())
       
   136             return ETrue;
       
   137         else
       
   138             return EFalse;
       
   139         }
       
   140 
       
   141         /**
       
   142         * @see MVIMPSTIMSubService
       
   143         */
       
   144         void CVIMPSTEngineImSubService_Stub::CloseConversationL( const TDesC& aContactId )
       
   145         {
       
   146         
       
   147         }
       
   148         
       
   149         /**
       
   150         * @see MVIMPSTIMSubService
       
   151         */
       
   152         
       
   153         RArray<SIMCacheChatItem>CVIMPSTEngineImSubService_Stub::GetOpenChatListL()
       
   154             {
       
   155 
       
   156             RArray<SIMCacheChatItem> item;
       
   157             return item;
       
   158             }
       
   159 // End of file