~ubuntu-branches/debian/stretch/psi-plus/stretch

« back to all changes in this revision

Viewing changes to src/plugins/generic/historykeeperplugin/historykeeperplugin.cpp

  • Committer: Package Import Robot
  • Author(s): Boris Pek
  • Date: 2013-10-23 02:42:20 UTC
  • mfrom: (1.4.7)
  • Revision ID: package-import@ubuntu.com-20131023024220-bk2hyoenqkwfhpgw
Tags: 0.16.242-1
* New upstream release:
  fixed the problem of initialization of private conversation when both
  sides use libotr 4.0.x. (Closes: #724880)
* Update debian/watch: sources were moved.
* Delete psi-plus-content-downloader package and update all related files.
  This plugin is in psi-plus-plugins package now.
* Update debian/control:
  - remove all currently unneeded Replaces and Breaks fields
  - add build dependency on libidn11-dev
* Update debian/rules: simplify get-orig-source section.
* Update debian/copyright:
  - update Source field due to changes in sources location
  - remove copyright holders whose code was deleted from source tree
    (bundled libidn library was removed)

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
#include "iconfactoryaccessinghost.h"
35
35
#include "iconfactoryaccessor.h"
36
36
 
37
 
#define cVer "0.0.6"
 
37
#define cVer "0.0.7"
38
38
#define constClearHistoryFor "clear-history-for"
39
39
 
40
40
 
43
43
                        public MenuAccessor, public PluginInfoProvider, public IconFactoryAccessor
44
44
{
45
45
        Q_OBJECT
 
46
#ifdef HAVE_QT5
 
47
        Q_PLUGIN_METADATA(IID "com.psi-plus.HistoryKeeperPlugin")
 
48
#endif
46
49
        Q_INTERFACES(PsiPlugin OptionAccessor ApplicationInfoAccessor MenuAccessor PluginInfoProvider IconFactoryAccessor)
47
50
 
48
51
public:
64
67
        virtual QAction* getContactAction(QObject* p, int acc, const QString& jid);
65
68
        virtual QAction* getAccountAction(QObject* , int ) { return 0; };
66
69
        virtual QString pluginInfo();
 
70
        virtual QPixmap icon() const;
67
71
 
68
72
 
69
73
private:
85
89
 
86
90
};
87
91
 
 
92
#ifndef HAVE_QT5
88
93
Q_EXPORT_PLUGIN(HistoryKeeperPlugin);
 
94
#endif
89
95
 
90
96
HistoryKeeperPlugin::HistoryKeeperPlugin()
91
97
        : enabled(false)
288
294
                                 "You can select or deselect a contact for history removal from the context menu of a contact or via the plugin options.");
289
295
}
290
296
 
 
297
QPixmap HistoryKeeperPlugin::icon() const
 
298
{
 
299
        return QPixmap(":/icons/historykeeper.png");
 
300
}
 
301
 
291
302
#include "historykeeperplugin.moc"