phoneengine/phoneservices/inc/phoneservices.h
author William Roberts <williamr@symbian.org>
Fri, 11 Jun 2010 16:24:06 +0100
branchGCC_SURGE
changeset 38 35db4fa135f4
parent 30 ebdbd102c78a
child 51 f39ed5e045e0
permissions -rw-r--r--
Branch for GCC_SURGE fixes

/*!
* 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:  Phone Services manages all Phone Engine's Qt Highway services.
*
*/

#ifndef PHONESERVICES_H
#define PHONESERVICES_H

#include <QObject>
#include "mpecallcontrolif.h"
#include "mpecallsettersif.h"

class DialService;
class DTMFService;
class MPEKeySequenceRecognitionIF;
class KeySequenceRecognitionService;

// Depricated APIs
class DialServiceDepricated;
class DTMFServiceDepricated;
class KeySequenceRecognitionServiceDepricated;

#ifdef BUILD_PHONESERVICES
#define PHONESERVICES_EXPORT Q_DECL_EXPORT
#else
#define PHONESERVICES_EXPORT Q_DECL_IMPORT
#endif

class PHONESERVICES_EXPORT PhoneServices : public QObject
{
    Q_OBJECT
public:
    PhoneServices(
        MPECallControlIF &call, 
        MPECallSettersIF &parameters,
        MPEKeySequenceRecognitionIF &keySequenceRecognition,
        QObject *parent = 0);
    ~PhoneServices();    
    
private:
    QScopedPointer<DialService> dialService;
    QScopedPointer<DTMFService> dtmfService;
    QScopedPointer<KeySequenceRecognitionService> m_keySequenceRecognitionService;

    // Depricated
    QScopedPointer<DialServiceDepricated> dialServiceDepricated;
    QScopedPointer<DTMFServiceDepricated> dtmfServiceDepricated;
    QScopedPointer<KeySequenceRecognitionServiceDepricated> m_keySequenceRecognitionServiceDepricated;
};

#endif // PHONESERVICES_H