~smspillaz/unity/untiy.less-paint-insanity

« back to all changes in this revision

Viewing changes to plugins/unityshell/src/SoftwareCenterLauncherIcon.h

  • Committer: Daniel van Vugt
  • Date: 2012-03-14 06:24:18 UTC
  • mfrom: (2108 unity)
  • mto: This revision was merged to the branch mainline in revision 2146.
  • Revision ID: daniel.van.vugt@canonical.com-20120314062418-nprucpbr0m7qky5e
Merged latest lp:unity

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
// -*- Mode: C++; indent-tabs-mode: nil; tab-width: 2 -*-
2
2
/*
3
 
 * Copyright (C) 2010 Canonical Ltd
 
3
 * Copyright (C) 2012 Canonical Ltd
4
4
 *
5
5
 * This program is free software: you can redistribute it and/or modify
6
6
 * it under the terms of the GNU General Public License version 3 as
15
15
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
16
16
 *
17
17
 * Authored by: Bilal Akhtar <bilalakhtar@ubuntu.com>
 
18
 *              Marco Trevisan (Treviño) <3v1n0@ubuntu.com>
18
19
 */
19
20
 
20
 
#ifndef SOFTWARECENTERLAUNCHERICON_H
21
 
#define SOFTWARECENTERLAUNCHERICON_H
 
21
#ifndef SOFTWARE_CENTER_LAUNCHERICON_H
 
22
#define SOFTWARE_CENTER_LAUNCHERICON_H
22
23
 
23
24
#include "BamfLauncherIcon.h"
24
 
#include <Nux/BaseWindow.h>
25
 
#include <NuxCore/Math/MathInc.h>
26
 
#include <core/core.h>
27
 
#include <gio/gio.h>
28
 
#include <glib.h>
29
 
#include <glib/gvariant.h>
30
25
#include <UnityCore/GLibDBusProxy.h>
31
26
 
32
 
 
33
27
namespace unity
34
28
{
35
29
namespace launcher
36
30
{
37
31
 
38
 
 
39
32
class SoftwareCenterLauncherIcon : public BamfLauncherIcon
40
33
{
41
34
public:
42
 
 
43
 
    SoftwareCenterLauncherIcon(Launcher* IconManager, BamfApplication* app, char* aptdaemon_trans_id, char* icon_path);
44
 
    virtual ~SoftwareCenterLauncherIcon();
45
 
 
46
 
    gchar* original_tooltip_text;
 
35
  SoftwareCenterLauncherIcon(BamfApplication* app,
 
36
                             std::string const& aptdaemon_trans_id,
 
37
                             std::string const& icon_path);
47
38
 
48
39
private:
49
 
    char* _aptdaemon_trans_id;
50
 
    unity::glib::DBusProxy* _aptdaemon_trans;
51
 
 
52
 
    void OnFinished(GVariant* params);
53
 
 
54
 
    void OnPropertyChanged(GVariant* params);
 
40
  void OnPropertyChanged(GVariant* params);
 
41
 
 
42
  glib::DBusProxy _aptdaemon_trans;
55
43
};
56
44
 
57
45
}
58
46
}
59
47
 
60
 
#endif
 
48
#endif //SOFTWARE_CENTER_LAUNCHERICON_H