File: fieldnames.h

package info (click to toggle)
dlt-viewer 2.27.0%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 9,196 kB
  • sloc: cpp: 31,376; ansic: 4,224; xml: 492; sh: 244; makefile: 81
file content (50 lines) | stat: -rw-r--r-- 1,204 bytes parent folder | download | duplicates (3)
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