Add '-D_SECURE_LOG'
[platform/framework/native/telephony.git] / src / FTel_CallForwardEventArg.h
1 //
2 // Open Service Platform
3 // Copyright (c) 2012-2013 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        FTel_CallForwardEventArg.h
19  * @brief       This is the header file for _CallForwardEventArg class.
20  *
21  * This header file contains the declarations of _CallForwardEventArg class.
22  */
23
24
25 #ifndef _FTEL_INTERNAL_CALL_FORWARD_EVENT_ARG_H_
26 #define _FTEL_INTERNAL_CALL_FORWARD_EVENT_ARG_H_
27
28 // Includes
29 #include <FBaseObject.h>
30 #include <FBaseDataType.h>
31 #include <FBaseString.h>
32 #include <FBaseRtIEventArg.h>
33
34 namespace Tizen { namespace Base { namespace Collection
35 {
36 class IList;
37 }}}
38
39 namespace Tizen { namespace Telephony
40 {
41
42 enum _CallForwardEventType
43 {
44     _CALL_FORWARD_EVENT_NONE,
45     _CALL_FORWARD_EVENT_NUMBER_RECEIVED,
46     _CALL_FORWARD_EVENT_RESPONSE_RECEIVED,
47     _CALL_FORWARD_EVENT_STOPPED
48 };
49
50
51 /**
52  * @class   _CallForwardEventArg
53  * @brief   This class is used as an argument of methods of the ITelephonyCallForwardListener class.
54  *
55  * This class is used as an argument of ITelephonyCallForwardListenerListener methods.
56  * When a CallManager event occurs, the _CallForwardingEvent object finds a ITelephonyCallForwardListenerListener object
57  * which is registered for the CallManager object and calls an appropriate method of the listener.
58  */
59
60 class _CallForwardEventArg
61     : public Tizen::Base::Object
62     , public Tizen::Base::Runtime::IEventArg
63 {
64 public:
65     _CallForwardEventArg(void);
66
67     _CallForwardEventArg(_CallForwardEventType eventType, Tizen::Base::String phoneNumber, result r);
68
69     virtual ~_CallForwardEventArg(void);
70
71     result GetError(void) const;
72
73     _CallForwardEventType GetEventType(void) const;
74
75     Tizen::Base::String GetPhoneNumber(void) const;
76
77 private:
78     _CallForwardEventArg(const _CallForwardEventArg& rhs);
79     _CallForwardEventArg& operator =(const _CallForwardEventArg& rhs);
80
81 private:
82     result __error;
83     _CallForwardEventType __eventType;
84     Tizen::Base::String __phoneNumber;
85
86 }; // _CallForwardEventArg
87 } }
88
89 #endif // _FTEL_INTERNAL_CALL_FORWARD_EVENT_ARG_H_