2 * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
20 * @author Grzegorz Krawczyk (g.krawczyk@samsung.com)
25 #ifndef PLATFORM_WIDGET_CONFIGURATION_H_
26 #define PLATFORM_WIDGET_CONFIGURATION_H_
30 #include <Commons/WrtAccess/WrtAccess.h>
32 #include <Widget/IWidget.h>
33 #include <WidgetDB/IWidgetDB.h>
36 namespace WrtDeviceApis {
39 class Widget : public Api::IWidget
46 virtual std::string getAuthor() const;
47 virtual std::string getAuthorEmail() const;
48 virtual std::string getAuthorHref() const;
49 virtual std::string getDescription() const;
50 virtual std::string getId() const;
51 virtual std::string getName() const;
52 virtual std::string getShortName() const;
53 virtual std::string getVersion() const;
54 virtual unsigned int getHeight() const;
55 virtual unsigned int getWidth() const;
59 mutable StringProperty m_author;
60 mutable StringProperty m_authorEmail;
61 mutable StringProperty m_authorHref;
62 mutable StringProperty m_description;
63 mutable StringProperty m_id;
64 mutable StringProperty m_name;
65 mutable StringProperty m_shortName;
66 mutable StringProperty m_version;
67 mutable UIntProperty m_height;
68 mutable UIntProperty m_width;
72 std::string getProperty(WidgetDB::Api::ConfigAttribute) const;
73 void checkWidgetId() const;