namespace notification {
namespace item {
-IconItem::IconItem(std::string iconPath, std::shared_ptr<AbstractAction> action)
- : ImageItem(iconPath, action) , impl_(new Impl(this, iconPath)) {
+IconItem::IconItem(std::string icon_path, std::shared_ptr<AbstractAction> action)
+ : ImageItem(icon_path, action) , impl_(new Impl(this, icon_path)) {
}
-IconItem::IconItem(std::string id, std::string iconPath,
+IconItem::IconItem(std::string id, std::string icon_path,
std::shared_ptr<AbstractAction> action)
- : ImageItem(id, iconPath, action), impl_(new Impl(this, iconPath)) {
+ : ImageItem(id, icon_path, action), impl_(new Impl(this, icon_path)) {
}
-IconItem::Impl::Impl(IconItem* parent, std::string iconPath)
- : parent_(parent), iconPath_(iconPath) {
+IconItem::Impl::Impl(IconItem* parent, std::string icon_path)
+ : parent_(parent), icon_path_(icon_path) {
LOGI("IconItem impl created");
}
/**
* @brief Constructor
* @since_tizen 5.5
- * @param[in] iconpath The icon path of IconItem
+ * @param[in] icon_path The icon path of IconItem
* @param[in] action The action for IconItem
*/
- IconItem(std::string iconPath,
+ IconItem(std::string icon_path,
std::shared_ptr<AbstractAction> action = std::shared_ptr<AbstractAction>({}));
/**
* @brief Constructor
* @since_tizen 5.5
* @param[in] id The IconItem id
- * @param[in] iconpath The icon path of IconItem
+ * @param[in] icon_path The icon path of IconItem
* @param[in] action The action for IconItem
*/
- IconItem(std::string id, std::string iconPath,
+ IconItem(std::string id, std::string icon_path,
std::shared_ptr<AbstractAction> action = std::shared_ptr<AbstractAction>({}));
/**
private:
friend class IconItem;
- Impl(IconItem* parent, std::string iconPath);
+ Impl(IconItem* parent, std::string icon_path);
private:
IconItem* parent_;
- std::string iconPath_;
+ std::string icon_path_;
};
} // namespace item
namespace notification {
namespace item {
-ImageItem::ImageItem(std::string imagePath,
+ImageItem::ImageItem(std::string image_path,
std::shared_ptr<AbstractAction> action)
- : AbstractItem(action), impl_(new Impl(this, imagePath)) {
+ : AbstractItem(action), impl_(new Impl(this, image_path)) {
}
-ImageItem::ImageItem(std::string id, std::string imagePath,
+ImageItem::ImageItem(std::string id, std::string image_path,
std::shared_ptr<AbstractAction> action)
- : AbstractItem(id, action), impl_(new Impl(this, imagePath)) {
+ : AbstractItem(id, action), impl_(new Impl(this, image_path)) {
}
-ImageItem::Impl::Impl(ImageItem* parent, std::string imagePath)
- : parent_(parent), imagePath_(imagePath) {
+ImageItem::Impl::Impl(ImageItem* parent, std::string image_path)
+ : parent_(parent), image_path_(image_path) {
LOGI("ImageItem impl created");
}
Bundle ImageItem::Serialize() const {
Bundle b;
b = AbstractItem::Serialize();
- b.Add(IMAGE_PATH_KEY, impl_->imagePath_);
+ b.Add(IMAGE_PATH_KEY, impl_->image_path_);
return b;
}
void ImageItem::Deserialize(Bundle b) {
AbstractItem::Deserialize(b);
- impl_->imagePath_ = b.GetString(IMAGE_PATH_KEY);
+ impl_->image_path_ = b.GetString(IMAGE_PATH_KEY);
}
AbstractItem& ImageItem::FindByID(std::string id) {
}
std::string ImageItem::GetImagePath() const {
- return impl_->imagePath_;
+ return impl_->image_path_;
}
ImageItem::~ImageItem() = default;
/**
* @brief Constructor
* @since_tizen 5.5
- * @param[in] imagePath The image path of ImageItem
+ * @param[in] image_path The image path of ImageItem
* @param[in] action The action for ImageItem
*/
- ImageItem(std::string imagePath,
+ ImageItem(std::string image_path,
std::shared_ptr<AbstractAction> action = std::shared_ptr<AbstractAction>({}));
/**
* @brief Constructor
* @since_tizen 5.5
* @param[in] id The ImageItem id
- * @param[in] imagePath The image path of ImageItem
+ * @param[in] image_path The image path of ImageItem
* @param[in] action The action for ImageItem
*/
- ImageItem(std::string id, std::string imagePath,
+ ImageItem(std::string id, std::string image_path,
std::shared_ptr<AbstractAction> action = std::shared_ptr<AbstractAction>({}));
/**
private:
friend class ImageItem;
- Impl(ImageItem* parent, std::string imagePath);
+ Impl(ImageItem* parent, std::string image_path);
private:
ImageItem* parent_;
- std::string imagePath_;
+ std::string image_path_;
};
} // namespace item