dRonin
adbada4
dRonin GCS
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Groups
Pages
boardmanager.h
Go to the documentation of this file.
1
13
/*
14
* This program is free software; you can redistribute it and/or modify
15
* it under the terms of the GNU General Public License as published by
16
* the Free Software Foundation; either version 3 of the License, or
17
* (at your option) any later version.
18
*
19
* This program is distributed in the hope that it will be useful, but
20
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
21
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
22
* for more details.
23
*
24
* You should have received a copy of the GNU General Public License along
25
* with this program; if not, see <http://www.gnu.org/licenses/>
26
*/
27
#ifndef BOARDMANAGER_H
28
#define BOARDMANAGER_H
29
30
#include <QObject>
31
32
#include "
core_global.h
"
33
#include <
coreplugin/iboardtype.h
>
34
35
namespace
Core {
36
37
class
CORE_EXPORT
BoardManager
:
public
QObject
38
{
39
Q_OBJECT
40
41
public
:
42
BoardManager
();
43
virtual
~
BoardManager
();
44
45
void
init();
46
50
QList<IBoardType *>
getAvailableBoardTypes
() {
return
m_boardTypesList; }
51
60
QList<int>
getKnownVendorIDs();
61
68
QList<IBoardType::USBInfo>
getKnownFirmwareUSBInfo();
69
76
QList<IBoardType::USBInfo>
getKnownBootloaderUSBInfo();
77
82
IBoardType
*getBoard(
int
type);
83
84
protected
:
85
signals:
86
87
public
slots:
88
89
private
slots:
90
// Two slots used to detect arrival/removal of board types
91
// by plugins
92
void
objectAdded(QObject *obj);
93
void
aboutToRemoveObject(QObject *obj);
94
95
protected
:
96
QList<IBoardType *>
m_boardTypesList
;
97
98
private
:
99
};
100
101
}
// namespace Core
102
#endif // BOARDMANAGER_H
103
Core::BoardManager::m_boardTypesList
QList< IBoardType * > m_boardTypesList
Definition:
boardmanager.h:96
Core::BoardManager
Definition:
boardmanager.h:37
core_global.h
iboardtype.h
Core::IBoardType
Definition:
iboardtype.h:52
Core::BoardManager::getAvailableBoardTypes
QList< IBoardType * > getAvailableBoardTypes()
Definition:
boardmanager.h:50
QList
Definition:
icore.h:39
ground
gcs
src
plugins
coreplugin
boardmanager.h
Generated by
1.8.6