/* * Qt UI * * Copyright (C) 2014 Samsung Electronics Co., Ltd. All rights reserved. * * Contact: * GiWoong Kim * Sangho Park * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * MA 02110-1301, USA. * * Contributors: * - S-Core Co., Ltd * */ #ifndef UIINFORMATION_H #define UIINFORMATION_H #include #include "layout/mainform.h" #include "uistate.h" #include "layout/controllerform.h" #include "menu/menuitem.h" class UiInformation { public: UiInformation(); ~UiInformation(); void setVmName(QString name); QString getVmName(); void setResolution(QSize size); QSize getResolution(); void setBasePort(int port); int getBasePort(); void setVmDataPath(QString path); QString getVmDataPath(); void setSkinPath(QString path); QString getSkinPath(); void setSkinName(QString name); QString getSkinName(); QList &getMainFormList(); QList &getConFormList(); QList &getMenuList(); UIState *getUiState(); QColor getVMColor(); MainForm *getMainForm(); /* current */ DisplayType *getMainFormDpyType(); ControllerForm *getConForm(); QSize getMainSize(); QSize getConSize(); QSize getUiSize(); /* main + docking con */ QRegion getMainRegion(); QRegion getConRegion(); QRegion getUiRegion(); /* main + docking con */ QRegion getMainKeyRegion(QWidget *base, QRect &keyRect, LayoutForm::SkinImgType type); QRegion getConKeyRegion(QWidget *base, QRect &keyRect, LayoutForm::SkinImgType type); private: QString vmName; QSize resolution; int basePort; QString vmDataPath; QString skinPath; QString skinName; QList mainFormList; QList conFormList; QList menuList; UIState uiState; /* runtime information */ }; #endif // UIINFORMATION_H