Merge "Fixed exception handling codes" into tizen_2.1
[framework/osp/social.git] / src / FScl_CalendarbookRecordRetrivalThread.h
1 //
2 // Open Service Platform
3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
4 //
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
8 //
9 //     http://www.apache.org/licenses/LICENSE-2.0
10 //
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.
16 //
17 /**
18  * @file        FScl_CalendarbookRecordRetrivalThread.h
19  * @brief       This is the header file for the _CalendarbookRecordRetrivalThread class.
20  *
21  * This file contains the declarations of _CalendarbookRecordRetrivalThread.
22  */
23
24 #ifndef _FSCL_INTERNAL_CALENDARBOOK_RECORD_RETRIVAL_THREAD_H_
25 #define _FSCL_INTERNAL_CALENDARBOOK_RECORD_RETRIVAL_THREAD_H_
26
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>
34
35 namespace Tizen { namespace Social
36 {
37
38 class _CalendarbookRecordRetrivalEvent;
39
40 class _CalendarbookRecordRetrivalThread
41         : public Tizen::Base::Runtime::Thread
42 {
43 public:
44         /**
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.
47          *
48          * @see             Construct()
49          */
50         _CalendarbookRecordRetrivalThread(void);
51
52         /**
53          * This destructor overrides Tizen::Base::Runtime::Thread::~Thread().
54          */
55         virtual ~_CalendarbookRecordRetrivalThread(void);
56
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);
60
61         virtual Tizen::Base::Object* Run(void);
62
63 private:
64         RequestId __requestId;
65         std::unique_ptr<_CalendarbookRecordRetrivalEvent> __pEvent;
66         Tizen::Base::DateTime __start;
67         Tizen::Base::DateTime __end;
68         Tizen::Locales::TimeZone __timeZone;
69         int __pageNo;
70         int __countPerPage;
71         unsigned long __category;
72
73 }; // _CalendarbookRecordRetrivalThread
74
75 }} // Tizen::Social
76
77 #endif // _FSCL_INTERNAL_CALENDARBOOK_RECORD_RETRIVAL_THREAD_H_