rcsimengine/src/chatcontactmanager.cpp
changeset 0 59dfe4ae66d0
equal deleted inserted replaced
-1:000000000000 0:59dfe4ae66d0
       
     1 /*
       
     2 * Copyright (c) 2009-2010 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 * Initial Contributors:
       
     9 * Nokia Corporation - initial contribution.
       
    10 * Contributors:
       
    11 *
       
    12 * Description:
       
    13 * RCS IM Library - Initial version
       
    14 *
       
    15 */
       
    16 
       
    17 
       
    18 #include "chatcontactmanager.h"
       
    19 
       
    20 #ifdef Q_OS_SYMBIAN
       
    21 #include "chatcontactmanagerimpl_sym.h"
       
    22 #endif
       
    23 
       
    24 using namespace RcsIMLib;
       
    25 
       
    26 ChatContactManager::ChatContactManager()
       
    27 {
       
    28 	mpImpl = new ChatContactManagerImpl(this);
       
    29 }
       
    30 
       
    31 ChatContactManager::~ChatContactManager()
       
    32     {
       
    33     delete mpImpl;
       
    34     }
       
    35 
       
    36 RcsIMLib::RcsChatId ChatContactManager::createChatSession(QContactLocalId contactId, QString initMsg)
       
    37 {
       
    38     return mpImpl->createChatSession(contactId, initMsg);
       
    39 }
       
    40 
       
    41 void ChatContactManager::closeSession(RcsIMLib::RcsChatId sessID)
       
    42 {
       
    43     mpImpl->closeSession(sessID);
       
    44 }
       
    45 
       
    46 void ChatContactManager::acceptIncomingSession(RcsIMLib::RcsChatId sessID)
       
    47 {
       
    48     mpImpl->acceptIncomingSession(sessID);
       
    49 }