|
10 | 10 | class QIODevice;
|
11 | 11 | class QuaZipFile;
|
12 | 12 |
|
13 |
| -/** |
14 |
| - * @class ImportSpreadsheet |
15 |
| - * @brief Base class for spreadsheet importing classes. |
16 |
| - */ |
| 13 | +/// @class ImportSpreadsheet |
| 14 | +/// @brief Base class for spreadsheet importing classes. |
17 | 15 | class EIBLE_EXPORT ImportSpreadsheet : public QObject
|
18 | 16 | {
|
19 | 17 | Q_OBJECT
|
20 | 18 | public:
|
21 |
| - /** |
22 |
| - * @brief Constructor. |
23 |
| - * @param ioDevice Source of data (QFile, QBuffer, ...). |
24 |
| - */ |
| 19 | + /// @brief Constructor. |
| 20 | + /// @param ioDevice Source of data (QFile, QBuffer, ...). |
25 | 21 | explicit ImportSpreadsheet(QIODevice& ioDevice);
|
26 | 22 |
|
27 |
| - /** |
28 |
| - * @brief Get list of sheet names. |
29 |
| - * @return First value indicating success, second is sheet names list. |
30 |
| - */ |
| 23 | + /// @brief Get list of sheet names. |
| 24 | + /// @return First value indicating success, second is sheet names list. |
31 | 25 | virtual std::pair<bool, QStringList> getSheetNames() = 0;
|
32 | 26 |
|
33 |
| - /** |
34 |
| - * @brief Get list of column names. |
35 |
| - * @param sheetName Sheet name. |
36 |
| - * @return First value indicating success, second is column names list. |
37 |
| - */ |
| 27 | + /// @brief Get list of column names. |
| 28 | + /// @param sheetName Sheet name. |
| 29 | + /// @return First value indicating success, second is column names list. |
38 | 30 | virtual std::pair<bool, QStringList> getColumnNames(
|
39 | 31 | const QString& sheetName) = 0;
|
40 | 32 |
|
41 |
| - /** |
42 |
| - * @brief Get list of column types. |
43 |
| - * @param sheetName Sheet name. |
44 |
| - * @return First value indicating success, second is column types vector. |
45 |
| - */ |
| 33 | + /// @brief Get list of column types. |
| 34 | + /// @param sheetName Sheet name. |
| 35 | + /// @return First value indicating success, second is column types vector. |
46 | 36 | virtual std::pair<bool, QVector<ColumnType>> getColumnTypes(
|
47 | 37 | const QString& sheetName) = 0;
|
48 | 38 |
|
49 |
| - /** |
50 |
| - * @brief Get last error. |
51 |
| - * @return First value contains function name, second error. |
52 |
| - */ |
| 39 | + /// @brief Get last error. |
| 40 | + /// @return First value contains function name, second error. |
53 | 41 | QString getLastError() const;
|
54 | 42 |
|
55 |
| - /** |
56 |
| - * @brief Set name used for empty columns. |
57 |
| - * @param name Name for empty column. |
58 |
| - */ |
| 43 | + /// @brief Set name used for empty columns. |
| 44 | + /// @param name Name for empty column. |
59 | 45 | void setNameForEmptyColumn(const QString& name);
|
60 | 46 |
|
61 |
| - /** |
62 |
| - * @brief Get number of columns in given sheet. |
63 |
| - * @param sheetName Sheet name. |
64 |
| - * @return First value indicating success, second is column count. |
65 |
| - */ |
| 47 | + /// @brief Get number of columns in given sheet. |
| 48 | + /// @param sheetName Sheet name. |
| 49 | + /// @return First value indicating success, second is column count. |
66 | 50 | std::pair<bool, int> getColumnCount(const QString& sheetName);
|
67 | 51 |
|
68 |
| - /** |
69 |
| - * @brief Get number of rows in given sheet. |
70 |
| - * @param sheetName Sheet name. |
71 |
| - * @return First value indicating success, second is row count. |
72 |
| - */ |
| 52 | + /// @brief Get number of rows in given sheet. |
| 53 | + /// @param sheetName Sheet name. |
| 54 | + /// @return First value indicating success, second is row count. |
73 | 55 | std::pair<bool, int> getRowCount(const QString& sheetName);
|
74 | 56 |
|
75 |
| - /** |
76 |
| - * @brief Get data from sheet. |
77 |
| - * @param sheetName Sheet name. |
78 |
| - * @param excludedColumns Vector of excluded columns (indexes). |
79 |
| - * @return First value indicating success, second is vector of data rows. |
80 |
| - */ |
| 57 | + /// @brief Get data from sheet. |
| 58 | + /// @param sheetName Sheet name. |
| 59 | + /// @param excludedColumns Vector of excluded columns (indexes). |
| 60 | + /// @return First value indicating success, second is vector of data rows. |
81 | 61 | std::pair<bool, QVector<QVector<QVariant>>> getData(
|
82 | 62 | const QString& sheetName, const QVector<int>& excludedColumns);
|
83 | 63 |
|
84 |
| - /** |
85 |
| - * @brief Get limited data from sheet. |
86 |
| - * @param sheetName Sheet name. |
87 |
| - * @param excludedColumns Vector of excluded columns (indexes). |
88 |
| - * @param rowLimit Number of rows to load. |
89 |
| - * @return First value indicating success, second is vector of data rows. |
90 |
| - */ |
| 64 | + /// @brief Get limited data from sheet. |
| 65 | + /// @param sheetName Sheet name. |
| 66 | + /// @param excludedColumns Vector of excluded columns (indexes). |
| 67 | + /// @param rowLimit Number of rows to load. |
| 68 | + /// @return First value indicating success, second is vector of data rows. |
91 | 69 | virtual std::pair<bool, QVector<QVector<QVariant>>> getLimitedData(
|
92 | 70 | const QString& sheetName, const QVector<int>& excludedColumns,
|
93 | 71 | int rowLimit) = 0;
|
@@ -148,9 +126,7 @@ class EIBLE_EXPORT ImportSpreadsheet : public QObject
|
148 | 126 | QuaZip zip_;
|
149 | 127 |
|
150 | 128 | Q_SIGNALS:
|
151 |
| - /** |
152 |
| - * Triggered on change of progress percentage. |
153 |
| - * @param progressPercent New progress percent. |
154 |
| - */ |
| 129 | + /// Triggered on change of progress percentage. |
| 130 | + /// @param progressPercent New progress percent. |
155 | 131 | void progressPercentChanged(int progressPercent);
|
156 | 132 | };
|
0 commit comments