-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathRetroChessPlugin.h
More file actions
82 lines (66 loc) · 3.28 KB
/
RetroChessPlugin.h
File metadata and controls
82 lines (66 loc) · 3.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
/*******************************************************************************
* RetroChessPlugin.h *
* *
* Copyright (C) 2020 RetroShare Team <retroshare.project@gmail.com> *
* *
* This program is free software: you can redistribute it and/or modify *
* it under the terms of the GNU Affero General Public License as *
* published by the Free Software Foundation, either version 3 of the *
* License, or (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU Affero General Public License for more details. *
* *
* You should have received a copy of the GNU Affero General Public License *
* along with this program. If not, see <https://www.gnu.org/licenses/>. *
* *
*******************************************************************************/
/* this is the central part of the plugin */
#pragma once
/*RetroChess*/
#include "services/p3RetroChess.h"
/*libretroshare"*/
#include <retroshare/rsplugin.h>
#include "gui/NEMainpage.h"
class RetroChessGUIHandler ;
class RetroChessNotify ;
class RetroChessPlugin: public RsPlugin
{
public:
RetroChessPlugin() ;
virtual ~RetroChessPlugin() {}
virtual p3Service *p3_service() const ;
virtual uint16_t rs_service_id() const
{
return RS_SERVICE_TYPE_RetroChess_PLUGIN ;
}
//virtual ConfigPage *qt_config_page() const ;
virtual QDialog *qt_about_page() const ;
virtual ChatWidgetHolder *qt_get_chat_widget_holder(ChatWidget *chatWidget) const ;
virtual QIcon *qt_icon() const;
virtual QTranslator *qt_translator(QApplication *app, const QString& languageCode, const QString& externalDir) const;
virtual void qt_sound_events(SoundEvents &events) const;
virtual void getPluginVersion(int& major, int& minor, int &build, int& svn_rev) const ;
virtual void setPlugInHandler(RsPluginHandler *pgHandler);
virtual std::string configurationFileName() const
{
return "RetroChess.cfg" ;
}
virtual std::string getShortPluginDescription() const ;
virtual std::string getPluginName() const;
virtual void setInterfaces(RsPlugInInterfaces& interfaces);
//================================== RsPlugin Notify ==================================//
//virtual ToasterNotify *qt_toasterNotify();
virtual MainPage *qt_page() const ;
private:
mutable p3RetroChess *mRetroChess ;
mutable RsPluginHandler *mPlugInHandler;
mutable RsPeers* mPeers;
mutable ConfigPage *config_page ;
mutable QIcon *mIcon;
mutable MainPage* mainpage ;
RetroChessNotify *mRetroChessNotify ;
RetroChessGUIHandler *mRetroChessGUIHandler ;
};