blob: e24603315a24bce26a65f128bcf9f02fd5b34c90 [file] [log] [blame]
Robert Bieberd8827b52010-06-18 21:10:01 +00001/***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
9 *
10 * Copyright (C) 2010 Robert Bieber
11 *
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
16 *
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
19 *
20 ****************************************************************************/
21
22#ifndef RBRENDERINFO_H
23#define RBRENDERINFO_H
24
Robert Biebere1d8a3d2010-06-21 20:11:58 +000025#include <QMap>
26
Robert Bieberd8827b52010-06-18 21:10:01 +000027class RBScreen;
28class ProjectModel;
29class ParseTreeModel;
Robert Bieberc32728c2010-06-26 05:18:21 +000030class DeviceState;
Robert Bieber49865b22010-08-04 09:16:52 +000031class SkinDocument;
Robert Bieberd8827b52010-06-18 21:10:01 +000032
33class RBRenderInfo
34{
35public:
Robert Biebere1d8a3d2010-06-21 20:11:58 +000036 RBRenderInfo(ParseTreeModel* model, ProjectModel* project,
Robert Bieber49865b22010-08-04 09:16:52 +000037 SkinDocument* doc, QMap<QString, QString>* settings,
Robert Bieberd1a392a2010-08-09 19:37:23 +000038 DeviceState* device, RBScreen* screen);
Robert Bieber3ecef7d2010-06-29 19:59:33 +000039 RBRenderInfo();
Robert Bieberd8827b52010-06-18 21:10:01 +000040 RBRenderInfo(const RBRenderInfo& other);
41 virtual ~RBRenderInfo();
42
43 const RBRenderInfo& operator=(const RBRenderInfo& other);
44
45 ProjectModel* project() const{ return mProject; }
Robert Bieberc32728c2010-06-26 05:18:21 +000046 DeviceState* device() const{ return mDevice; }
Robert Bieber49865b22010-08-04 09:16:52 +000047 SkinDocument* document() const{ return mDoc; }
Robert Biebere1d8a3d2010-06-21 20:11:58 +000048 QMap<QString, QString>* settings() const{ return mSettings; }
Robert Bieberd8827b52010-06-18 21:10:01 +000049 RBScreen* screen() const{ return mScreen; }
50 ParseTreeModel* model() const{ return mModel; }
51
52private:
53 ProjectModel* mProject;
Robert Bieber49865b22010-08-04 09:16:52 +000054 SkinDocument* mDoc;
Robert Biebere1d8a3d2010-06-21 20:11:58 +000055 QMap<QString, QString>* mSettings;
Robert Bieberc32728c2010-06-26 05:18:21 +000056 DeviceState* mDevice;
Robert Bieberd8827b52010-06-18 21:10:01 +000057 RBScreen* mScreen;
Robert Bieberd8827b52010-06-18 21:10:01 +000058 ParseTreeModel* mModel;
59};
60
61#endif // RBRENDERINFO_H