Skip to content
Snippets Groups Projects
maemomanager.h 2.39 KiB
Newer Older
ck's avatar
ck committed
/**************************************************************************
**
** This file is part of Qt Creator
**
hjk's avatar
hjk committed
** Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
ck's avatar
ck committed
**
kh1's avatar
kh1 committed
** Contact: Nokia Corporation (qt-info@nokia.com)
ck's avatar
ck committed
**
** Commercial Usage
**
** Licensees holding valid Qt Commercial licenses may use this file in
** accordance with the Qt Commercial License Agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and Nokia.
**
** GNU Lesser General Public License Usage
**
** Alternatively, this file may be used under the terms of the GNU Lesser
** General Public License version 2.1 as published by the Free Software
** Foundation and appearing in the file LICENSE.LGPL included in the
** packaging of this file.  Please review the following information to
** ensure the GNU Lesser General Public License version 2.1 requirements
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
**
** If you are unsure which license is appropriate for your use, please
** contact the sales department at qt-sales@nokia.com.
**
**************************************************************************/

#ifndef MAEMOMANAGER_H
#define MAEMOMANAGER_H

#include <QtCore/QObject>

namespace ProjectExplorer {
    class ToolChain;
}
using ProjectExplorer::ToolChain;

namespace Qt4ProjectManager {
    class QtVersion;
ck's avatar
ck committed

class MaemoDeployStepFactory;
class MaemoPackageCreationFactory;
ck's avatar
ck committed
class MaemoRunControlFactory;
class MaemoRunConfigurationFactory;
class MaemoSettingsPage;
ck's avatar
ck committed
class MaemoQemuManager;
ck's avatar
ck committed

class MaemoManager : public QObject
{
    Q_OBJECT
ck's avatar
ck committed
public:
    MaemoManager();
    ~MaemoManager();
    static MaemoManager &instance();
ck's avatar
ck committed

    bool isValidMaemoQtVersion(const Qt4ProjectManager::QtVersion *version) const;
ck's avatar
ck committed
    ToolChain *maemoToolChain(const Qt4ProjectManager::QtVersion *version) const;

    MaemoSettingsPage *settingsPage() const { return m_settingsPage; }

ck's avatar
ck committed
private:
    static MaemoManager *m_instance;

    MaemoRunControlFactory *m_runControlFactory;
    MaemoRunConfigurationFactory *m_runConfigurationFactory;
    MaemoPackageCreationFactory *m_packageCreationFactory;
    MaemoDeployStepFactory *m_deployStepFactory;
    MaemoSettingsPage *m_settingsPage;
ck's avatar
ck committed
    MaemoQemuManager *m_qemuRuntimeManager;
ck's avatar
ck committed
};

    } // namespace Internal
} // namespace Qt4ProjectManager

#endif // MAEMOMANAGER_H