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.
18 * @author Tomasz Swierczek (t.swierczek@samsung.com)
20 * @brief This file contains definitions of AceThinClient API
22 #ifndef WRT_ACE_CLIENT_H
23 #define WRT_ACE_CLIENT_H
25 #include <dpl/noncopyable.h>
26 #include <dpl/singleton.h>
27 #include <dpl/exception.h>
28 #include <ace-client/ace_client_types.h>
31 class ResourceInformationImpl;
32 class OperationSystemImpl;
36 class AceThinClientImpl;
38 class AceThinClient : private DPL::Noncopyable {
43 DECLARE_EXCEPTION_TYPE(DPL::Exception, Base)
44 DECLARE_EXCEPTION_TYPE(Base, AceThinClientException)
47 bool checkFunctionCall(const AceRequest& ace_request) const;
48 bool checkPrivacy(const AceRequest& ace_request) const;
49 AcePreference getWidgetResourcePreference(
50 const AceResource& resource,
51 const AceWidgetHandle& handle) const;
52 AceResourcesPreferences* getGlobalResourcesPreferences() const;
53 bool isInitialized() const;
57 virtual ~AceThinClient();
59 AceThinClientImpl* m_impl;
60 friend class DPL::Singleton<AceThinClient>;
61 WebRuntimeImpl* m_wrt;
62 ResourceInformationImpl* m_res;
63 OperationSystemImpl* m_sys;
66 typedef DPL::Singleton<AceThinClient> AceThinClientSingleton;
68 } // namespace AceClient
70 #endif // WRT_ACE_CLIENT_H