2 * Copyright (c) 2013, TOYOTA MOTOR CORPORATION.
4 * This program is licensed under the terms and conditions of the
5 * Apache License, version 2.0. The full text of the Apache License is at
6 * http://www.apache.org/licenses/LICENSE-2.0
10 //==========================================================================
12 * @file CicoNotification.h
14 * @brief This file is definition of CicoNotification class
16 //==========================================================================
17 #ifndef __CICO_NOTIFICATION_H__
18 #define __CICO_NOTIFICATION_H__
20 #include <notification.h>
22 //--------------------------------------------------------------------------
24 * @class CicoNotification
26 * @brief This class provide notification functions
28 //--------------------------------------------------------------------------
29 class CicoNotification {
32 CicoNotification(notification_type_e type);
35 CicoNotification(notification_h noti);
40 // get notfication handle
41 notification_h GetNotiHandle(void) const;
44 bool Empty(void) const;
46 // get notification type
47 notification_type_e GetType(void) const;
52 // set caller package name
53 bool SetPkgname(const char *pkgname);
55 // get caller package name
56 const char *GetPkgname(void);
59 bool SetTitle(const char *title);
62 const char *GetTitle(void);
65 bool SetContent(const char *content);
68 const char *GetContent(void);
71 bool SetIconPath(const char *path);
74 const char *GetIconPath(void);
77 bool SetExecuteOption(notification_execute_type_e type,
80 bundle *service_handle);
83 bool GetExecuteOption(notification_execute_type_e type,
85 bundle **service_handle);
88 // default constructor
91 // assignment operator
92 CicoNotification& operator=(const CicoNotification & object);
95 CicoNotification(const CicoNotification & object);
98 /// notification handle
99 notification_h m_notification;
101 /// notification type
102 notification_type_e m_type;
104 /// notification private id
107 /// notification group id
110 #endif // __CICO_NOTIFICATION_H__
111 // vim:set expandtab ts=4 sw=4: