~macslow/unity/backported-remote-add-to-5.0

1276.4.7 by Neil Jagdish Patel
Add generic renderer
1
// -*- Mode: C++; indent-tabs-mode: nil; tab-width: 2 -*-
2
/*
3
 * Copyright (C) 2011 Canonical Ltd
4
 *
5
 * This program is free software: you can redistribute it and/or modify
6
 * it under the terms of the GNU General Public License version 3 as
7
 * published by the Free Software Foundation.
8
 *
9
 * This program is distributed in the hope that it will be useful,
10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
 * GNU General Public License for more details.
13
 *
14
 * You should have received a copy of the GNU General Public License
15
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
16
 *
17
 * Authored by: Neil Jagdish Patel <neil.patel@canonical.com>
18
 */
19
20
#ifndef UNITY_GENERIC_PREVIEW_H
21
#define UNITY_GENERIC_PREVIEW_H
22
23
#include <memory>
24
25
#include <sigc++/trackable.h>
26
27
#include "Preview.h"
28
29
namespace unity
30
{
31
namespace dash
32
{
33
34
class GenericPreview : public Preview
35
{
36
public:
37
  typedef std::shared_ptr<GenericPreview> Ptr;
38
  
39
  GenericPreview(Preview::Properties& properties);
40
41
  std::string name;
42
  unsigned int date_modified;
43
  unsigned int size;
44
  std::string type;
45
  std::string description;
46
  std::string icon_hint;
47
  std::string primary_action_name;
48
  std::string primary_action_icon_hint;
49
  std::string primary_action_uri;
50
  std::string secondary_action_name;
51
  std::string secondary_action_icon_hint;
52
  std::string secondary_action_uri;
53
  std::string tertiary_action_name;
54
  std::string tertiary_action_icon_hint;
55
  std::string tertiary_action_uri;
56
};
57
58
}
59
}
60
61
#endif