Release version 0.7.18
[platform/core/api/notification.git] / notification-ex / visibility_action_implementation.h
1 /*
2  * Copyright (c) 2019 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 #ifndef NOTIFICATION_EX_VISIBILITY_ACTION_IMPLEMENTATION_H_
18 #define NOTIFICATION_EX_VISIBILITY_ACTION_IMPLEMENTATION_H_
19
20 #include <string>
21 #include <list>
22
23 #include "notification-ex/visibility_action.h"
24
25 namespace notification {
26 namespace item {
27
28 class VisibilityAction::Impl {
29  public:
30   virtual ~Impl();
31
32  private:
33   friend class VisibilityAction;
34   Impl(VisibilityAction* parent);
35
36   class VisibilityEntity {
37     public:
38      std::string id_;
39      bool visibility_;
40     public:
41      VisibilityEntity(std::string id, bool visibility)
42        : id_(id), visibility_(visibility) {
43      }
44   };
45
46  private:
47   VisibilityAction* parent_;
48   std::list<std::unique_ptr<VisibilityEntity>> entities_;
49 };
50
51 }  // namespace item
52 }  // namespace notification
53
54 #endif  // NOTIFICATION_EX_VISIBILITY_ACTION_IMPLEMENTATION_H_