PageRenderTime 27ms CodeModel.GetById 15ms app.highlight 8ms RepoModel.GetById 1ms app.codeStats 0ms

/src/sip/jabber/googlewrapper/googlewrapper.h

http://github.com/tomahawk-player/tomahawk
C++ Header | 57 lines | 30 code | 11 blank | 16 comment | 0 complexity | 990a77b2b5fb3da6268ac8bb77df3d95 MD5 | raw file
 1/*
 2    Copyright (C) 2011  Leo Franchi <leo.franchi@kdab.com>
 3
 4    This program is free software: you can redistribute it and/or modify
 5    it under the terms of the GNU General Public License as published by
 6    the Free Software Foundation, either version 3 of the License, or
 7    (at your option) any later version.
 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
18
19#ifndef GOOGLEWRAPPER_H
20#define GOOGLEWRAPPER_H
21
22#include "sip/jabber/jabber.h"
23
24class SIPDLLEXPORT GoogleWrapperFactory : public SipPluginFactory
25{
26    Q_OBJECT
27    Q_INTERFACES( SipPluginFactory )
28
29public:
30    GoogleWrapperFactory() {}
31    virtual ~GoogleWrapperFactory() {}
32
33    virtual QString prettyName() const { return "Google"; }
34    virtual QString factoryId() const { return "sipgoogle"; }
35    virtual QIcon icon() const;
36    virtual SipPlugin* createPlugin( const QString& pluginId );
37};
38
39class SIPDLLEXPORT GoogleWrapper : public JabberPlugin
40{
41    Q_OBJECT
42public:
43  GoogleWrapper( const QString& pluginID );
44  virtual ~GoogleWrapper() {}
45
46  virtual const QString name() const { return QString( "Google" ); }
47  virtual const QString friendlyName() const { return "Google"; }
48  virtual QIcon icon() const;
49
50protected:
51    QString defaultSuffix() const;
52
53public slots:
54    void showAddFriendDialog();
55};
56
57#endif // GOOGLEWRAPPER_H