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
|
#ifndef FIELDNAMES_H
#define FIELDNAMES_H
#include "export_rules.h"
#include "qdltsettingsmanager.h"
#include <QObject>
#include <QString>
class QDLT_EXPORT FieldNames : public QObject
{
Q_OBJECT
public:
explicit FieldNames(QObject *parent = 0);
/* Order of columns */
enum Fields
{
Index,
Time,
TimeStamp,
Counter,
EcuId,
AppId,
ContextId,
SessionId,
Type,
Subtype,
Mode,
MessageId,
ArgCount,
Payload,
Arg0 //Arg0 must always be last field or tablemodels have to be changed as well
};
/* Get name for one column/field.
* Settings needed for App and Context Description change.
* Pass null for settings to get ID only always.
* Use case: Exports */
static QString getName(Fields cn, QDltSettingsManager *settings = NULL);
static int getColumnWidth(Fields cn, QDltSettingsManager *settings = NULL);
static QVariant getColumnAlignment(Fields cn, QDltSettingsManager *settings = NULL);
static bool getColumnShown(Fields cn,QDltSettingsManager *settings = NULL);
signals:
public slots:
};
#endif // FIELDNAMES_H
|