Home ยท API Reference |
00001 /* This file is part of meegoimengine * 00002 * 00003 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 00004 * All rights reserved. 00005 * Contact: Nokia Corporation (directui@nokia.com) 00006 * 00007 * If you have questions regarding the use of this file, please contact 00008 * Nokia at directui@nokia.com. 00009 * 00010 * This library is free software; you can redistribute it and/or 00011 * modify it under the terms of the GNU Lesser General Public 00012 * License version 2.1 as published by the Free Software Foundation 00013 * and appearing in the file LICENSE.LGPL included in the packaging 00014 * of this file. 00015 */ 00016 00017 #ifndef MIMENGINEFACTORY_H 00018 #define MIMENGINEFACTORY_H 00019 00020 #include <QObject> 00021 #include <QStringList> 00022 #include <QMap> 00023 #include "mimenginetypes.h" 00024 #include "mimenginewordsinterface.h" 00025 #include "mimenginehwrinterface.h" 00026 00027 class MImEngineFactoryPrivate; 00028 00035 class MImEngineFactory 00036 { 00037 Q_DISABLE_COPY(MImEngineFactory) 00038 friend class Ut_MImEngineFactory; 00039 00040 public: 00048 static MImEngineFactory *instance(); 00049 00055 MImEngineWordsInterface *createEngineWords(const QString &driver); 00056 00062 MImEngineHwrInterface *createEngineHwr(const QString &driver); 00063 00064 00069 void deleteEngine(MImEngineWordsInterface *engine); 00070 00071 00076 void deleteEngine(MImEngineHwrInterface *engine); 00077 00082 QStringList drivers(); 00083 00087 ~MImEngineFactory(); 00088 00089 private: 00090 MImEngineFactory(); 00091 MImEngineFactoryPrivate *const d_ptr; 00092 Q_DECLARE_PRIVATE(MImEngineFactory); 00093 }; 00094 00095 #endif //MIMENGINEFACTORY_H
Copyright © 2010 Nokia Corporation | MeeGo Touch |