forked from fredre/iUpdate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
DocumentInterface.h
52 lines (38 loc) · 1.5 KB
/
DocumentInterface.h
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
#ifndef DOCUMENTINTERFACE_H
#define DOCUMENTINTERFACE_H
#include <QStringList>
#include <QFile>
#include <QMap>
class DocumentInterface
{
public:
virtual QString echo( const QString &message ) = 0;
virtual QString FilePath()= 0;
virtual void setFilePath( QString )= 0;
virtual QString getFileExt()= 0;
virtual QString getFileTypeName()= 0;
virtual bool loadFile()= 0;
virtual QString getSubjectCode()= 0;
virtual QString getFirstStudentNumber()= 0;
virtual QString getLastStudentNumber()= 0;
virtual int getStudentCount()= 0;
virtual QStringList getMarkTypesList()= 0;
virtual int getMarkTypesCount()= 0;
virtual int getMarkTypeTotalNumberMarks( QString )= 0;
virtual QStringList getAllStudentNumbersPerMarkType( QString )= 0;
virtual QMap<QString, int> getAllMarksPerMarkType( QString )= 0;
virtual int getStudentMarkPerMarkType( QString,QString )= 0;
virtual QStringList getStudentNumbersWithNoMark( QString )= 0;
virtual void SetFilePath( QString )= 0;
virtual QString GetFileExt()= 0;
virtual QString GetFileTypeName()= 0;
virtual bool LoadFile()= 0;
virtual QString GetSubjectCode()= 0;
virtual QString GetFirstStudentNumber()= 0;
virtual QString GetLastStudentNumber()= 0;
virtual int GetStudentCount()= 0;
virtual QStringList GetMarkTypesList()= 0;
virtual int GetMarkTypesCount()= 0;
};
Q_DECLARE_INTERFACE( DocumentInterface , "org.QT.iupdate.plugins.documents" )
#endif // DOCUMENTINTERFACE_H