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

« back to all changes in this revision

Viewing changes to src/plugins/generic/icqdieplugin/icqdieplugin.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:
9
9
 *
10
10
 * Alternatively, this file may be used under the terms of the GNU
11
11
 * General Public License version 2 or (at your option) any later version
12
 
 * or GNU Lesser General Public License version 2 or (at your option) any 
13
 
 * later version as published by the Free Software Foundation and 
 
12
 * or GNU Lesser General Public License version 2 or (at your option) any
 
13
 * later version as published by the Free Software Foundation and
14
14
 * appearing in the file copying.txt included in the packaging of this file.
15
 
 * Please review the following information to ensure the GNU General 
16
 
 * Public License version 2.0 requirements will be met: 
 
15
 * Please review the following information to ensure the GNU General
 
16
 * Public License version 2.0 requirements will be met:
17
17
 * <http://www.gnu.org/licenses/>.
18
18
 */
19
19
 
35
35
#include "plugininfoprovider.h"
36
36
#include "ui_icqdieoptions.h"
37
37
 
38
 
#define cVer "0.1.5"
 
38
#define cVer "0.1.6"
39
39
#define constMessageRecv "msgr"
40
40
#define constMessageNoRecv "msgnr"
41
41
#define constCustom "custom"
48
48
                public AccountInfoAccessor, public PluginInfoProvider
49
49
{
50
50
        Q_OBJECT
 
51
#ifdef HAVE_QT5
 
52
        Q_PLUGIN_METADATA(IID "com.psi-plus.IcqDie")
 
53
#endif
51
54
                Q_INTERFACES(PsiPlugin OptionAccessor StanzaSender StanzaFilter ActiveTabAccessor
52
55
                             AccountInfoAccessor PluginInfoProvider)
53
56
 
69
72
        virtual void setActiveTabAccessingHost(ActiveTabAccessingHost* host);
70
73
        virtual void setAccountInfoAccessingHost(AccountInfoAccessingHost* host);
71
74
        virtual QString pluginInfo();
 
75
        virtual QPixmap icon() const;
72
76
 
73
77
private:
74
78
        bool enabled;
94
98
 
95
99
};
96
100
 
 
101
#ifndef HAVE_QT5
97
102
Q_EXPORT_PLUGIN(IcqDie);
 
103
#endif
98
104
 
99
105
IcqDie::IcqDie()
100
106
{
415
421
                         "* disable messages for contacts that are not in your roster");
416
422
}
417
423
 
 
424
QPixmap IcqDie::icon() const
 
425
{
 
426
        return QPixmap(":/icons/icqdie.png");
 
427
}
 
428
 
418
429
#include "icqdieplugin.moc"