|
CAN programming interface environment
Version 3.10
|
The QCanPlugin class is the base class for CAN interface plug-ins, which can be used to add any kind of CAN interface cards to the CANpie FD Server.
For an example of the QCanPlugin class refer to the QCanPluginTemplate class located inside the source/applications/plugins/qcan_template directory.
#include <qcan_plugin.hpp>
Inherits QObject.
Public Slots | |
| virtual void | appendMessage (const QString &clLogMessageV, const QCan::LogLevel_e teLogLevelV=QCan::eLOG_LEVEL_INFO) |
Public Member Functions | |
| virtual QCanInterface * | getInterface (uint8_t ubInterfaceV=0)=0 |
| virtual QIcon | icon (void)=0 |
| virtual uint8_t | interfaceCount (void)=0 |
| virtual QString | name (void)=0 |
| bool | setFileName (const QString clFileNameV) |
| void | setLogLevel (QCan::LogLevel_e teLogLevelV) |
|
virtualslot |
| [in] | clLogMessageV | Log message |
| [in] | teLogLevelV | Log level |
The function function appends a log message to the log file. The message will be prepended with a time-stamp. The parameter teLogLevelV defines the log level of the message. Only messages with a log level smaller or equal to the actual defined log level will be appended (see setLogLevel()).
|
pure virtual |
| [in] | ubInterfaceV | Number of CAN interface |
The function returns a pointer to a QCanInterface class defined by the parameter ubInterfaceV. The first interface starts at index 0. If the number of available interfaces is exceeded the function returns NULL.
|
pure virtual |
The function returns the icon of the plug-in.
|
pure virtual |
The function returns the number of CAN interfaces that are available.
|
pure virtual |
The function returns the name of the plug-in.
| bool QCanPlugin::setFileName | ( | const QString | clFileNameV | ) |
| [in] | clFileNameV | Log file name |
true if file could be opened, otherwise false The function changes the default file path and file name for the log attached to the CAN channel defined by the parameter teChannelV.
|
inline |
| [in] | teLogLevelV | Log level |
The function changes the default log level for the plugin.