2 // Open Service Platform
3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
5 // Licensed under the Apache License, Version 2.0 (the License);
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
9 // http://www.apache.org/licenses/LICENSE-2.0
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an "AS IS" BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
18 * @file FScl_CalendarbookRecordRetrivalThread.h
19 * @brief This is the header file for the _CalendarbookRecordRetrivalThread class.
21 * This file contains the declarations of _CalendarbookRecordRetrivalThread.
24 #ifndef _FSCL_INTERNAL_CALENDARBOOK_RECORD_RETRIVAL_THREAD_H_
25 #define _FSCL_INTERNAL_CALENDARBOOK_RECORD_RETRIVAL_THREAD_H_
27 #include <unique_ptr.h>
28 #include <FBaseTypes.h>
29 #include <FBaseDataType.h>
30 #include <FBaseObject.h>
31 #include <FBaseDateTime.h>
32 #include <FBaseRtThread.h>
33 #include <FLclTimeZone.h>
35 namespace Tizen { namespace Social
38 class _CalendarbookRecordRetrivalEvent;
40 class _CalendarbookRecordRetrivalThread
41 : public Tizen::Base::Runtime::Thread
45 * The object is not fully constructed after this constructor is called. For full construction, @n
46 * the Construct() method must be called right after calling this constructor.
50 _CalendarbookRecordRetrivalThread(void);
53 * This destructor overrides Tizen::Base::Runtime::Thread::~Thread().
55 virtual ~_CalendarbookRecordRetrivalThread(void);
57 result Construct(RequestId requestId, _CalendarbookRecordRetrivalEvent& event
58 , const Tizen::Base::DateTime& start, const Tizen::Base::DateTime& end, const Tizen::Locales::TimeZone& timeZone
59 , int pageNo, int countPerPage, unsigned long category);
61 virtual Tizen::Base::Object* Run(void);
64 RequestId __requestId;
65 std::unique_ptr<_CalendarbookRecordRetrivalEvent> __pEvent;
66 Tizen::Base::DateTime __start;
67 Tizen::Base::DateTime __end;
68 Tizen::Locales::TimeZone __timeZone;
71 unsigned long __category;
73 }; // _CalendarbookRecordRetrivalThread
77 #endif // _FSCL_INTERNAL_CALENDARBOOK_RECORD_RETRIVAL_THREAD_H_