AbstractItem& target = FindByID(target_id);
if (target.GetType() == NullObject)
return false;
- if (!impl_->IsValidMainType(target,type)) {
+ if (!impl_->IsValidMainType(target, type)) {
LOGE("Main type and item type are not matched (%d, %d)",
type, target.GetType());
return false;
#include <memory>
#include <string>
#include <list>
+#include <vector>
#include "notification-ex/abstract_action.h"
#include "notification-ex/multi_language.h"
#include <string>
#include <memory>
#include <list>
+#include <vector>
#include "notification-ex/abstract_item.h"
* @brief The handle for the notification event information.
* @since_tizen 5.5
*/
-typedef void* noti_ex_event_info_h;
+typedef void *noti_ex_event_info_h;
/**
* @brief Clones the notification event info handle.
* @brief The notification_ex manager handle.
* @since_tizen 5.5
*/
-typedef void* noti_ex_manager_h;
+typedef void *noti_ex_manager_h;
/**
* @brief Called when a notification addition event is received.
* @brief The notification_ex reporter handle.
* @since_tizen 5.5
*/
-typedef void* noti_ex_reporter_h;
+typedef void *noti_ex_reporter_h;
/**
* @brief Called when the error event is received.
#include <app_control.h>
+#include <string>
+
#include "notification-ex/abstract_action.h"
namespace notification {
namespace notification {
enum NotificationError {
- ERROR_NONE = TIZEN_ERROR_NONE, /**< Success */
- ERROR_INVALID_PARAMETER = TIZEN_ERROR_INVALID_PARAMETER, /**< Invalid parameter */
- ERROR_OUT_OF_MEMORY = TIZEN_ERROR_OUT_OF_MEMORY, /**< Out of memory */
- ERROR_IO_ERROR = TIZEN_ERROR_IO_ERROR, /**< I/O error */
- ERROR_PERMISSION_DENIED = TIZEN_ERROR_PERMISSION_DENIED, /**< Permission denied */
- ERROR_INVALID_OPERATION = TIZEN_ERROR_INVALID_OPERATION, /**< Function not implemented (@b Since: @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif) */
- ERROR_FROM_DB = TIZEN_ERROR_NOTIFICATION | 0x01, /**< Error from DB query */
- ERROR_ALREADY_EXIST_ID = TIZEN_ERROR_NOTIFICATION | 0x02, /**< Already exist private ID */
- ERROR_FROM_DBUS = TIZEN_ERROR_NOTIFICATION | 0x03, /**< Error from DBus */
- ERROR_NOT_EXIST_ID = TIZEN_ERROR_NOTIFICATION | 0x04, /**< Not exist private ID */
- ERROR_SERVICE_NOT_READY = TIZEN_ERROR_NOTIFICATION | 0x05, /**< No response from notification service */
- ERROR_MAX_EXCEEDED = TIZEN_ERROR_NOTIFICATION | 0x06, /**< Max notification count exceeded (@b Since: 3.0) */
+ ERROR_NONE = TIZEN_ERROR_NONE, /**< Success */
+ ERROR_INVALID_PARAMETER = TIZEN_ERROR_INVALID_PARAMETER, /**< Invalid parameter */
+ ERROR_OUT_OF_MEMORY = TIZEN_ERROR_OUT_OF_MEMORY, /**< Out of memory */
+ ERROR_IO_ERROR = TIZEN_ERROR_IO_ERROR, /**< I/O error */
+ ERROR_PERMISSION_DENIED = TIZEN_ERROR_PERMISSION_DENIED, /**< Permission denied */
+ ERROR_INVALID_OPERATION = TIZEN_ERROR_INVALID_OPERATION, /**< Function not implemented (@b Since: @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif) */
+ ERROR_FROM_DB = TIZEN_ERROR_NOTIFICATION | 0x01, /**< Error from DB query */
+ ERROR_ALREADY_EXIST_ID = TIZEN_ERROR_NOTIFICATION | 0x02, /**< Already exist private ID */
+ ERROR_FROM_DBUS = TIZEN_ERROR_NOTIFICATION | 0x03, /**< Error from DBus */
+ ERROR_NOT_EXIST_ID = TIZEN_ERROR_NOTIFICATION | 0x04, /**< Not exist private ID */
+ ERROR_SERVICE_NOT_READY = TIZEN_ERROR_NOTIFICATION | 0x05, /**< No response from notification service */
+ ERROR_MAX_EXCEEDED = TIZEN_ERROR_NOTIFICATION | 0x06, /**< Max notification count exceeded (@b Since: 3.0) */
};
} // namespace notification
uid,
i->GetChannel().c_str(),
util::GetQuarkFromString(i->GetId() + to_string(uid)),
- GetPkgId(i->GetSenderAppId(),uid).c_str(),
+ GetPkgId(i->GetSenderAppId(), uid).c_str(),
static_cast<int>(i->GetPolicy()),
reinterpret_cast<char*>(b.ToRaw().first.get()),
static_pointer_cast<IItemInfo>(i->GetInfo())->GetTime());
static void CheckLimit(std::shared_ptr<item::AbstractItem> addedItem, sqlite3* db);
static int UpdateReceiverList(std::shared_ptr<item::AbstractItem> updatedItem, sqlite3* db);
static std::list<std::shared_ptr<item::AbstractItem>> ExecuteGetList(char* query);
-
};
} // namespace notification
-#endif // NOTIFICATION_EX_DB_MANAGER_H_
\ No newline at end of file
+#endif // NOTIFICATION_EX_DB_MANAGER_H_
* limitations under the License.
*/
-#ifndef NOTIFICATION_EX_DBUS_MANAGER_H_
-#define NOTIFICATION_EX_DBUS_MANAGER_H_
+#ifndef NOTIFICATION_EX_DBUS_CONNECTION_MANAGER_H_
+#define NOTIFICATION_EX_DBUS_CONNECTION_MANAGER_H_
#include <gio/gio.h>
} // namespace notification
-#endif // NOTIFICATION_EX_DBUS_MANAGER_H_
+#endif // NOTIFICATION_EX_DBUS_CONNECTION_MANAGER_H_
* limitations under the License.
*/
-#ifndef NOTIFICATION_EX_DBUS_LISTENER_H_
-#define NOTIFICATION_EX_DBUS_LISTENER_H_
+#ifndef NOTIFICATION_EX_DBUS_EVENT_LISTENER_H_
+#define NOTIFICATION_EX_DBUS_EVENT_LISTENER_H_
+
+#include <string>
+#include <list>
#include "notification-ex/event_listener_interface.h"
} // namespace notification
-#endif // NOTIFICATION_EX_DBUS_LISTENER_H_
+#endif // NOTIFICATION_EX_DBUS_EVENT_LISTENER_H_
#include <bundle_cpp.h>
+#include <string>
+#include <list>
+
#include "notification-ex/event_sender_interface.h"
#include "notification-ex/ievent_info.h"
* limitations under the License.
*/
-#ifndef NOTIFICATION_EX_OBSERVER_INTERFACE_H_
-#define NOTIFICATION_EX_OBSERVER_INTERFACE_H_
+#ifndef NOTIFICATION_EX_EVENT_OBSERVER_INTERFACE_H_
+#define NOTIFICATION_EX_EVENT_OBSERVER_INTERFACE_H_
#include <bundle_cpp.h>
} // namespace notification
-#endif
+#endif // NOTIFICATION_EX_EVENT_OBSERVER_INTERFACE_H_
#include <bundle_cpp.h>
+#include <string>
#include <list>
#include "notification-ex/ievent_info.h"
bool is_vertical_ = true;
std::string app_label_;
GroupItem* parent_;
-
};
} // namespace item
#include <bundle_cpp.h>
+#include <string>
+
namespace notification {
#ifndef EXPORT_API
} // namespace item
} // namespace notification
-#endif // NOTIFICATION_EX_ITEM_FACTORY_H_
+#endif // NOTIFICATION_EX_IITEM_FACTORY_H_
#ifndef NOTIFICATION_EX_IITEM_INFO_INTERNAL_H_
#define NOTIFICATION_EX_IITEM_INFO_INTERNAL_H_
+#include <string>
+#include <list>
+
#include "notification-ex/iitem_info.h"
#ifndef EXPORT_API
private:
class Impl;
std::unique_ptr<Impl> impl_;
-}; //class ImageItem
+}; // class ImageItem
} // namespace item
} // namespace notification
* @since_tizen 5.5
* @return Bundle type data
*/
- virtual tizen_base::Bundle Serialize() const override;
+ tizen_base::Bundle Serialize() const override;
/**
* @brief Deserialize the serialized data.
* @since_tizen 5.5
* @param[in] b The serialized Bundle data
*/
- virtual void Deserialize(tizen_base::Bundle b) override;
+ void Deserialize(tizen_base::Bundle b) override;
/**
* @brief Checks the item type exist in this notification.
*/
class EXPORT_API ItemInflator {
public:
-
/**
* @brief Creates AbstractItem from Bundle data
* @since_tizen 5.5
#ifndef NOTIFICATION_EX_ITEM_INFO_INTERNAL_H_
#define NOTIFICATION_EX_ITEM_INFO_INTERNAL_H_
+#include <string>
+#include <list>
+
#include "notification-ex/abstract_item_implementation.h"
#include "notification-ex/iitem_info_internal.h"
private:
class Impl;
std::unique_ptr<Impl> impl_;
-
};
} // namespace notification
* @since_tizen 5.5
* @return Bundle type data
*/
- virtual tizen_base::Bundle Serialize() const override;
+ tizen_base::Bundle Serialize() const override;
/**
* @brief Deserialize the serialized data.
* @since_tizen 5.5
* @param[in] b The serialized Bundle data
*/
- virtual void Deserialize(tizen_base::Bundle b) override;
+ void Deserialize(tizen_base::Bundle b) override;
/**
* @brief Checks the item type exist in this notification.
-
-
/*
* Copyright (c) 2019 Samsung Electronics Co., Ltd.
*
* limitations under the License.
*/
-#ifndef NOTIFICATION_EX_INPUT_SELECTOR_ITEM_IMPLEMENTATION_H_
-#define NOTIFICATION_EX_INPUT_SELECTOR_ITEM_IMPLEMENTATION_H_
+#ifndef NOTIFICATION_EX_PROGRESS_ITEM_IMPLEMENTATION_H_
+#define NOTIFICATION_EX_PROGRESS_ITEM_IMPLEMENTATION_H_
#include <string>
#include <memory>
} // namespace item
} // namespace notification
-#endif // NOTIFICATION_EX_INPUT_SELECTOR_ITEM_IMPLEMENTATION_H_
+#endif // NOTIFICATION_EX_PROGRESS_ITEM_IMPLEMENTATION_H_
* limitations under the License.
*/
-#ifndef NOTIFICATION_EX_REPOTER_H_
-#define NOTIFICATION_EX_REPOTER_H_
+#ifndef NOTIFICATION_EX_REPORTER_H_
+#define NOTIFICATION_EX_REPORTER_H_
#include <string>
#include <list>
} // namespace notification
-#endif // NOTIFICATION_EX_REPOTER_H_
+#endif // NOTIFICATION_EX_REPORTER_H_
if (cb_.deleted == nullptr)
return;
IEventInfo* c_info = const_cast<IEventInfo*>(&info);
- if(c_info->GetEventType() == static_cast<int>(IEventInfo::EventType::DeleteAll)) {
+ if (c_info->GetEventType() == static_cast<int>(IEventInfo::EventType::DeleteAll)) {
cb_.deleted(static_cast<noti_ex_manager_h>(manager),
static_cast<noti_ex_event_info_h>(c_info),
nullptr, user_data_);
* @param[in] hyperlink The hyperlink of TextItem
* @param[in] action The action for TextItem
*/
- TextItem(std::string id ,std::string text,
+ TextItem(std::string id, std::string text,
std::string hyperlink = std::string(),
std::shared_ptr<AbstractAction> action = std::shared_ptr<AbstractAction>({}));
#ifndef NOTIFICATION_EX_VISIBILITY_ACTION_H_
#define NOTIFICATION_EX_VISIBILITY_ACTION_H_
+#include <string>
+
#include "notification-ex/abstract_action.h"
namespace notification {
#ifndef NOTIFICATION_EX_VISIBILITY_ACTION_IMPLEMENTATION_H_
#define NOTIFICATION_EX_VISIBILITY_ACTION_IMPLEMENTATION_H_
+#include <string>
#include <list>
#include "notification-ex/visibility_action.h"
VisibilityEntity(std::string id, bool visibility)
: id_(id), visibility_(visibility) {
}
- };
+ };
private:
VisibilityAction* parent_;