tizen beta release
[framework/web/wrt-plugins-common.git] / src / modules / API / Messaging / ValidityPeriodHours.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       ValidityPeriodHours.h
20  * @author     Pawel Misiak (p.misiak@samsung.com)
21  * @version    0.1
22  * @brief
23  */
24 #ifndef VALIDITYPERIODHOURS_H
25 #define VALIDITYPERIODHOURS_H
26
27 namespace WrtDeviceApis {
28 namespace Messaging {
29 namespace Api {
30 //--------------------------------------------------------------------------
31
32 class ValidityPeriodHours
33 {
34   private:   // fields
35
36     /**
37      * ValidityPeriodHours value
38      */
39     int m_validityPeriodHours;
40
41     /**
42      * information if abstract message ValidityPeriodHours has been changed and need update
43      * in low level
44      */
45     bool m_validValidityPeriodHours;
46
47   public:   // methods
48
49     ValidityPeriodHours();
50
51     virtual ~ValidityPeriodHours();
52
53     /**
54      * setter of ValidityPeriodHours value
55      */
56     void setValidityPeriodHours(int value);
57
58     /**
59      * getter of ValidityPeriodHours value
60      */
61     int getValidityPeriodHours() const;
62
63     /**
64      * check ValidityPeriodHours validity
65      * */
66     bool isValidityPeriodHoursValid() const;
67
68     /**
69      * set ValidityPeriodHours validity
70      * */
71     void setValidityPeriodHoursValidity(bool state);
72 };
73 }
74 }
75 }
76 #endif