1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
|
/*
This file is part of the Okteta program, made within the KDE community.
SPDX-FileCopyrightText: 2006-2007, 2011, 2014 Friedrich W. H. Kossebau <kossebau@kde.org>
SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
*/
#ifndef OKTETAPROGRAM_HPP
#define OKTETAPROGRAM_HPP
// Qt
#include <QApplication>
namespace Kasten {
class DialogHandler;
class DocumentManager;
class ViewManager;
class MultiDocumentStrategy;
// tmp
class ByteArrayViewProfileManager;
class OktetaProgram
{
public:
OktetaProgram(int& argc, char* argv[]);
OktetaProgram(const OktetaProgram&) = delete;
~OktetaProgram();
OktetaProgram& operator=(const OktetaProgram&) = delete;
public:
int execute();
void quit();
public:
DocumentManager* documentManager() const;
ViewManager* viewManager() const;
MultiDocumentStrategy* documentStrategy() const;
ByteArrayViewProfileManager* byteArrayViewProfileManager() const;
private:
QApplication mApp;
DocumentManager* mDocumentManager;
ViewManager* mViewManager;
MultiDocumentStrategy* mDocumentStrategy;
DialogHandler* mDialogHandler;
ByteArrayViewProfileManager* mByteArrayViewProfileManager;
};
inline DocumentManager* OktetaProgram::documentManager() const { return mDocumentManager; }
inline ViewManager* OktetaProgram::viewManager() const { return mViewManager; }
inline MultiDocumentStrategy* OktetaProgram::documentStrategy() const { return mDocumentStrategy; }
inline ByteArrayViewProfileManager* OktetaProgram::byteArrayViewProfileManager() const { return mByteArrayViewProfileManager; }
}
#endif
|