// -*- Mode: C++; indent-tabs-mode: nil; tab-width: 2 -*- /* * Copyright (C) 2011-2013 Canonical Ltd * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License version 3 as * published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Authored by: Manuel de la Pena */ #ifndef UNITY_PAYMENT_PREVIEW_PREVIEW_H #define UNITY_PAYMENT_PREVIEW_PREVIEW_H #include #include #include "Preview.h" namespace unity { namespace dash { class PaymentPreview : public Preview { public: enum PreviewType { APPLICATION, MUSIC, ERROR }; typedef std::shared_ptr Ptr; PaymentPreview(unity::glib::Object const& proto_obj); ~PaymentPreview(); // properties that contain the data nux::RWProperty title; nux::RWProperty subtitle; nux::RWProperty header; nux::RWProperty email; nux::RWProperty payment_method; nux::RWProperty purchase_prize; nux::RWProperty purchase_type; nux::RWProperty preview_type; private: class Impl; std::unique_ptr pimpl; }; } } #endif