mmserv/tms/inc/tmscallserver.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 02 Feb 2010 01:08:46 +0200
changeset 0 71ca22bcf22a
child 53 eabc8c503852
permissions -rw-r--r--
Revision: 201003 Kit: 201005

/*
 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
 * All rights reserved.
 * This component and the accompanying materials are made available
 * under the terms of "Eclipse Public License v1.0"
 * which accompanies this distribution, and is available
 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
 *
 * Initial Contributors:
 * Nokia Corporation - initial contribution.
 *
 * Contributors:
 *
 * Description: Telephony Multimedia Service
 *
 */

#ifndef TMSCALLSERVER_H
#define TMSCALLSERVER_H

// INCLUDES
#include <e32base.h>

namespace TMS {

const TUint KTMSCallServerMajorVersionNumber = 8;
const TUint KTMSCallServerMinorVersionNumber = 0;
const TUint KTMSCallServerBuildVersionNumber = 1;

// FORWARD DECLARATIONS
class TMSCallServerStartParam;
class TMSServer;
class TMSCallDelayTimer;

// -----------------------------------------------------------------------------
// TMSCallServer class
// -----------------------------------------------------------------------------
class TMSCallServer : public CServer2
    {
public:
    static TMSCallServer* NewL(TMSServer* aTMSServer);
    ~TMSCallServer();

    void AddSession();
    void DropSession();

    IMPORT_C static TInt StartThread(TAny* aParams);

private:
    TMSCallServer(TMSServer* aTMSServer);
    void ConstructL();
    CSession2* NewSessionL(const TVersion& aVersion,
            const RMessage2& aMessage) const;

    static void StartThreadL(TMSCallServerStartParam& aStart);

private:
    TMSServer* iTMSServer;
    TMSCallDelayTimer* iDelayTimer;
    TUint iSessionCount;
    };

} //namespace TMS

#endif // TMSCALLSERVER_H

// End of file