bc14122b303d7421c91568b71237704a5cb25f22
[framework/web/wrt-plugins-common.git] / src / modules / API / Messaging / CallbackNumber.h
1 /*
2  * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
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  *
18  *
19  * @file       CallbackNumber.h
20  * @author     Pawel Misiak (p.misiak@samsung.com)
21  * @version    0.1
22  * @brief
23  */
24 #ifndef CALLBACKNUMBER_H
25 #define CALLBACKNUMBER_H
26
27 #include <string>
28
29 namespace WrtDeviceApis {
30 namespace Messaging{
31 namespace Api {
32 //--------------------------------------------------------------------------
33
34 class CallbackNumber
35 {
36   private:   // fields
37
38     /**
39      * CallbackNumber value
40      */
41     std::string m_callbackNumber;
42
43     /**
44      * information if abstract message body has been changed and need update
45      * in low level
46      */
47     bool m_validCallbackNumber;
48
49   public:   // methods
50
51     CallbackNumber();
52
53     virtual ~CallbackNumber();
54
55     /**
56      * setter of CallbackNumber value
57      */
58     void setCallbackNumber(const std::string& value);
59
60     /**
61      * getter of CallbackNumber value
62      */
63     std::string getCallbackNumber() const;
64
65     /**
66      * getter of CallbackNumber value
67      */
68     const std::string& getCallbackNumberRef() const;
69
70     /**
71      * check CallbackNumber validity
72      * */
73     bool isCallbackNumberValid() const;
74
75     /**
76      * set CallbackNumber validity
77      * */
78     void setCallbackNumberValidity(bool state);
79 };
80 }
81 }
82 }
83 #endif