78ef7614a2cc00698a8f82488a4827071658cd99
[framework/osp/social.git] / src / FScl_CalendarbookRecordRetrivalThread.h
1 //
2 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
3 //
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
7 //
8 //     http://www.apache.org/licenses/LICENSE-2.0
9 //
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.
15 //
16 /**
17  * @file        FScl_CalendarbookRecordRetrivalThread.h
18  * @brief       This is the header file for the _CalendarbookRecordRetrivalThread class.
19  *
20  * This file contains the declarations of _CalendarbookRecordRetrivalThread.
21  */
22
23 #ifndef _FSCL_INTERNAL_CALENDARBOOK_RECORD_RETRIVAL_THREAD_H_
24 #define _FSCL_INTERNAL_CALENDARBOOK_RECORD_RETRIVAL_THREAD_H_
25
26 #include <unique_ptr.h>
27 #include <FBaseTypes.h>
28 #include <FBaseDataType.h>
29 #include <FBaseObject.h>
30 #include <FBaseDateTime.h>
31 #include <FBaseRtThread.h>
32 #include <FLclTimeZone.h>
33
34 namespace Tizen { namespace Social
35 {
36
37 class _CalendarbookRecordRetrivalEvent;
38
39 class _CalendarbookRecordRetrivalThread
40         : public Tizen::Base::Runtime::Thread
41 {
42 public:
43         /**
44          * The object is not fully constructed after this constructor is called. For full construction, @n
45          * the Construct() method must be called right after calling this constructor.
46          *
47          * @see             Construct()
48          */
49         _CalendarbookRecordRetrivalThread(void);
50
51         /**
52          * This destructor overrides Tizen::Base::Runtime::Thread::~Thread().
53          */
54         virtual ~_CalendarbookRecordRetrivalThread(void);
55
56         result Construct(RequestId requestId, _CalendarbookRecordRetrivalEvent& event
57                         , const Tizen::Base::DateTime& start, const Tizen::Base::DateTime& end, const Tizen::Locales::TimeZone& timeZone
58                         , int pageNo, int countPerPage, unsigned long category);
59
60         virtual Tizen::Base::Object* Run(void);
61
62 private:
63         RequestId __requestId;
64         std::unique_ptr<_CalendarbookRecordRetrivalEvent> __pEvent;
65         Tizen::Base::DateTime __start;
66         Tizen::Base::DateTime __end;
67         Tizen::Locales::TimeZone __timeZone;
68         int __pageNo;
69         int __countPerPage;
70         unsigned long __category;
71
72 }; // _CalendarbookRecordRetrivalThread
73
74 }} // Tizen::Social
75
76 #endif // _FSCL_INTERNAL_CALENDARBOOK_RECORD_RETRIVAL_THREAD_H_