~fginther/unity/100-scopes-search-tests-2

« back to all changes in this revision

Viewing changes to launcher/TrashLauncherIcon.h

  • Committer: Tarmac
  • Author(s): Andrea Azzarone, Sebastien Bacher, Marco Trevisan (Treviño), Automatic PS uploader, Chris Townsend, Nick Dedekind, Stephen M. Webb
  • Date: 2013-03-18 18:14:10 UTC
  • mfrom: (3082.1.2 unity)
  • Revision ID: tarmac-20130318181410-0pefja0gsjbigryu
merge with trunk.

Approved by PS Jenkins bot, Nick Dedekind.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
#define TRASHLAUNCHERICON_H
22
22
 
23
23
#include <gio/gio.h>
24
 
#include <UnityCore/GLibDBusProxy.h>
25
24
#include <UnityCore/GLibWrapper.h>
26
25
#include <UnityCore/GLibSignal.h>
27
26
 
28
27
#include "DndData.h"
29
28
#include "SimpleLauncherIcon.h"
 
29
#include "FileManagerOpener.h"
30
30
 
31
31
namespace unity
32
32
{
37
37
{
38
38
 
39
39
public:
40
 
  TrashLauncherIcon();
 
40
  TrashLauncherIcon(FileManagerOpener::Ptr const& = nullptr);
41
41
  ~TrashLauncherIcon();
42
42
 
43
43
protected:
55
55
 
56
56
  static void UpdateTrashIconCb(GObject* source, GAsyncResult* res, gpointer data);
57
57
 
58
 
  gboolean empty_;
59
 
  glib::DBusProxy proxy_;
 
58
  bool empty_;
 
59
  FileManagerOpener::Ptr file_manager_;
60
60
  glib::Object<GCancellable> cancellable_;
61
61
  glib::Object<GFileMonitor> trash_monitor_;
62
62
  glib::Signal<void, GFileMonitor*, GFile*, GFile*, GFileMonitorEvent> trash_changed_signal_;
63
 
  glib::Signal<void, DbusmenuMenuitem*, int> empty_activated_signal_;
 
63
  glib::Signal<void, DbusmenuMenuitem*, unsigned> empty_activated_signal_;
64
64
};
65
65
 
66
66
}