1 #ifndef __DALI_SLP_PLATFORM_RESOURCE_TEXT_REQUESTER_H__
2 #define __DALI_SLP_PLATFORM_RESOURCE_TEXT_REQUESTER_H__
5 * Copyright (c) 2014 Samsung Electronics Co., Ltd.
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
21 #include <platform-abstractions/slp/resource-loader/resource-requester-base.h>
22 #include "resource-thread-text.h"
28 class ResourceRequest;
34 class ResourceTextRequester : public ResourceRequesterBase
39 * @param[in] resourceLoader The resource loader with which to communicate results
41 ResourceTextRequester( ResourceLoader& resourceLoader );
46 virtual ~ResourceTextRequester();
49 * @copydoc ResourceRequester::Pause()
54 * @copydoc ResourceRequester::Resume()
56 virtual void Resume();
59 * @copydoc ResourceRequester::LoadResource()
61 virtual void LoadResource( Integration::ResourceRequest& request );
64 * @copydoc ResourceRequester::LoadResourceSynchronously()
66 virtual Integration::ResourcePointer LoadResourceSynchronously( const Integration::ResourceType& type, const std::string& path );
69 * @copydoc ResourceRequester::LoadFurtherResources()
71 virtual Integration::LoadStatus LoadFurtherResources( Integration::ResourceRequest& request, LoadedResource partialResource );
74 * @copydoc ResourceRequester::SaveResource()
76 virtual void SaveResource(const Integration::ResourceRequest& request );
79 * @copydoc ResourceRequester::CancelLoad()
81 virtual void CancelLoad(Integration::ResourceId id, Integration::ResourceTypeId typeId);
86 * Create thread if it doesn't exist
91 ResourceThreadText* mThreadText; ///< Loader thread
97 #endif // __DALI_SLP_PLATFORM_RESOURCE_TEXT_REQUESTER_H__