Changeset View
Changeset View
Standalone View
Standalone View
kmymoney/plugins/xml/mymoneystoragenames.h
Show First 20 Lines • Show All 62 Lines • ▼ Show 20 Line(s) | |||||
63 | 63 | | |||
64 | namespace MyMoneyStandardAccounts { | 64 | namespace MyMoneyStandardAccounts { | ||
65 | 65 | | |||
66 | enum idNameE { stdAccLiability, stdAccAsset, stdAccExpense, stdAccIncome, stdAccEquity }; | 66 | enum idNameE { stdAccLiability, stdAccAsset, stdAccExpense, stdAccIncome, stdAccEquity }; | ||
67 | 67 | | |||
68 | extern const QHash<idNameE, QString> stdAccNames; | 68 | extern const QHash<idNameE, QString> stdAccNames; | ||
69 | } | 69 | } | ||
70 | 70 | | |||
71 | enum class StdAccName { | ||||
72 | Liability, | ||||
73 | Asset, | ||||
74 | Expense, | ||||
75 | Income, | ||||
76 | Equity | ||||
77 | }; | ||||
78 | | ||||
79 | enum class Tag { | ||||
80 | Institutions, | ||||
81 | Payees, | ||||
82 | CostCenters, | ||||
83 | Tags, | ||||
84 | Accounts, | ||||
85 | Transactions, | ||||
86 | Schedules, | ||||
87 | Securities, | ||||
88 | Currencies, | ||||
89 | Prices, | ||||
90 | Reports, | ||||
91 | Budgets, | ||||
92 | OnlineJobs, | ||||
93 | KMMFile, | ||||
94 | FileInfo, | ||||
95 | User | ||||
96 | }; | ||||
97 | | ||||
98 | enum class Node { | ||||
99 | Institution, | ||||
100 | Payee, | ||||
101 | CostCenter, | ||||
102 | Tag, | ||||
103 | Account, | ||||
104 | Transaction, | ||||
105 | ScheduleTX, | ||||
106 | Security, | ||||
107 | Currency, | ||||
108 | Price, | ||||
109 | PricePair, | ||||
110 | Report, | ||||
111 | Budget, | ||||
112 | OnlineJob, | ||||
113 | KeyValuePairs, | ||||
114 | Equity | ||||
115 | }; | ||||
116 | | ||||
117 | namespace Element { | ||||
118 | enum class General { | ||||
119 | Address, | ||||
120 | CreationDate, | ||||
121 | LastModifiedDate, | ||||
122 | Version, | ||||
123 | FixVersion, | ||||
124 | Pair | ||||
125 | }; | ||||
126 | | ||||
127 | enum class Transaction { | ||||
128 | Split = 0, | ||||
129 | Splits | ||||
130 | }; | ||||
131 | | ||||
132 | enum class Account { | ||||
133 | SubAccount, | ||||
134 | SubAccounts, | ||||
135 | OnlineBanking | ||||
136 | }; | ||||
137 | | ||||
138 | enum class Payee { | ||||
139 | Address | ||||
140 | }; | ||||
141 | | ||||
142 | enum class KVP { | ||||
143 | Pair | ||||
144 | }; | ||||
145 | | ||||
146 | enum class Institution { | ||||
147 | AccountID, | ||||
148 | AccountIDS, | ||||
149 | Address | ||||
150 | }; | ||||
151 | | ||||
152 | enum class Report { | ||||
153 | Payee, | ||||
154 | Tag, | ||||
155 | Account, | ||||
156 | Text, | ||||
157 | Type, | ||||
158 | State, | ||||
159 | Number, | ||||
160 | Amount, | ||||
161 | Dates, | ||||
162 | Category, | ||||
163 | AccountGroup | ||||
164 | }; | ||||
165 | | ||||
166 | enum class Budget { | ||||
167 | Budget = 0, | ||||
168 | Account, | ||||
169 | Period | ||||
170 | }; | ||||
171 | | ||||
172 | enum class Schedule { | ||||
173 | Payment, | ||||
174 | Payments | ||||
175 | }; | ||||
176 | | ||||
177 | enum class OnlineJob { | ||||
178 | OnlineTask | ||||
179 | }; | ||||
180 | } | ||||
181 | | ||||
182 | namespace Attribute { | ||||
183 | enum class General { | ||||
184 | ID = 0, | ||||
185 | Date, | ||||
186 | Count, | ||||
187 | From, | ||||
188 | To, | ||||
189 | Source, | ||||
190 | Key, | ||||
191 | Value, | ||||
192 | Price, | ||||
193 | Name, | ||||
194 | Email, | ||||
195 | Country, | ||||
196 | City, | ||||
197 | ZipCode, | ||||
198 | Street, | ||||
199 | Telephone, | ||||
200 | // insert new entries above this line | ||||
201 | LastAttribute | ||||
202 | }; | ||||
203 | | ||||
204 | enum class Transaction { | ||||
205 | Name = 0, | ||||
206 | Type, | ||||
207 | PostDate, | ||||
208 | Memo, | ||||
209 | EntryDate, | ||||
210 | Commodity, | ||||
211 | BankID, | ||||
212 | // insert new entries above this line | ||||
213 | LastAttribute | ||||
214 | }; | ||||
215 | | ||||
216 | enum class Account { | ||||
217 | ID = 0, | ||||
218 | Name, | ||||
219 | Type, | ||||
220 | ParentAccount, | ||||
221 | LastReconciled, | ||||
222 | LastModified, | ||||
223 | Institution, | ||||
224 | Opened, | ||||
225 | Number, | ||||
226 | Description, | ||||
227 | Currency, | ||||
228 | OpeningBalance, | ||||
229 | IBAN, | ||||
230 | BIC, | ||||
231 | // insert new entries above this line | ||||
232 | LastAttribute | ||||
233 | }; | ||||
234 | | ||||
235 | enum class Payee { | ||||
236 | ID = 0, | ||||
237 | Name, | ||||
238 | Type, | ||||
239 | Reference, | ||||
240 | Notes, | ||||
241 | MatchingEnabled, | ||||
242 | UsingMatchKey, | ||||
243 | MatchIgnoreCase, | ||||
244 | MatchKey, | ||||
245 | DefaultAccountID, | ||||
246 | Street, | ||||
247 | City, | ||||
248 | PostCode, | ||||
249 | Email, | ||||
250 | State, | ||||
251 | Telephone, | ||||
252 | // insert new entries above this line | ||||
253 | LastAttribute | ||||
254 | }; | ||||
255 | | ||||
256 | enum class Tag { | ||||
257 | ID = 0, | ||||
258 | Name, | ||||
259 | Type, | ||||
260 | TagColor, | ||||
261 | Closed, | ||||
262 | Notes, | ||||
263 | // insert new entries above this line | ||||
264 | LastAttribute | ||||
265 | }; | ||||
266 | | ||||
267 | enum class Security { | ||||
268 | ID = 0, | ||||
269 | Name, | ||||
270 | Symbol, | ||||
271 | Type, | ||||
272 | RoundingMethod, | ||||
273 | SAF, | ||||
274 | PP, | ||||
275 | SCF, | ||||
276 | TradingCurrency, | ||||
277 | TradingMarket, | ||||
278 | // insert new entries above this line | ||||
279 | LastAttribute | ||||
280 | }; | ||||
281 | | ||||
282 | enum class KVP { | ||||
283 | Key, | ||||
284 | Value, | ||||
285 | // insert new entries above this line | ||||
286 | LastAttribute | ||||
287 | }; | ||||
288 | | ||||
289 | enum class Institution { | ||||
290 | ID = 0, | ||||
291 | Name, | ||||
292 | Manager, | ||||
293 | SortCode, | ||||
294 | Street, | ||||
295 | City, | ||||
296 | Zip, | ||||
297 | Telephone, | ||||
298 | // insert new entries above this line | ||||
299 | LastAttribute | ||||
300 | }; | ||||
301 | | ||||
302 | enum class Report { | ||||
303 | ID = 0, Group, Type, Name, Comment, ConvertCurrency, Favorite, | ||||
304 | SkipZero, DateLock, DataLock, MovingAverageDays, | ||||
305 | IncludesActuals, IncludesForecast, IncludesPrice, | ||||
306 | IncludesAveragePrice, IncludesMovingAverage, | ||||
307 | IncludesSchedules, IncludesTransfers, IncludesUnused, | ||||
308 | MixedTime, Investments, Budget, | ||||
309 | ShowRowTotals, ShowColumnTotals, Detail, | ||||
310 | ColumnsAreDays, ChartType, | ||||
311 | ChartCHGridLines, ChartSVGridLines, | ||||
312 | ChartDataLabels, ChartByDefault, | ||||
313 | LogYAxis, ChartLineWidth, ColumnType, RowType, | ||||
314 | DataRangeStart, DataRangeEnd, | ||||
315 | DataMajorTick, DataMinorTick, | ||||
316 | YLabelsPrecision, QueryColumns, | ||||
317 | Tax, Loans, HideTransactions, InvestmentSum, | ||||
318 | SettlementPeriod, ShowSTLTCapitalGains, TermsSeparator, | ||||
319 | Pattern, CaseSensitive, RegEx, InvertText, State, | ||||
320 | From, To, | ||||
321 | // insert new entries above this line | ||||
322 | LastAttribute | ||||
323 | }; | ||||
324 | | ||||
325 | enum class Budget { | ||||
326 | ID = 0, | ||||
327 | Name, | ||||
328 | Start, | ||||
329 | Version, | ||||
330 | BudgetLevel, | ||||
331 | BudgetSubAccounts, | ||||
332 | Amount, | ||||
333 | // insert new entries above this line | ||||
334 | LastAttribute | ||||
335 | }; | ||||
336 | | ||||
337 | enum class Schedule { | ||||
338 | ID = 0, | ||||
339 | Name, | ||||
340 | Type, | ||||
341 | Occurrence, | ||||
342 | OccurrenceMultiplier, | ||||
343 | PaymentType, | ||||
344 | Fixed, | ||||
345 | AutoEnter, | ||||
346 | LastPayment, | ||||
347 | WeekendOption, | ||||
348 | Date, | ||||
349 | StartDate, | ||||
350 | EndDate, | ||||
351 | LastDayInMonth, | ||||
352 | // insert new entries above this line | ||||
353 | LastAttribute | ||||
354 | }; | ||||
355 | | ||||
356 | enum class OnlineJob { | ||||
357 | ID = 0, | ||||
358 | Send, | ||||
359 | BankAnswerDate, | ||||
360 | BankAnswerState, | ||||
361 | IID, | ||||
362 | AbortedByUser, | ||||
363 | AcceptedByBank, | ||||
364 | RejectedByBank, | ||||
365 | SendingError, | ||||
366 | // insert new entries above this line | ||||
367 | LastAttribute | ||||
368 | }; | ||||
369 | | ||||
370 | enum class CostCenter { | ||||
371 | ID = 0, | ||||
372 | Name, | ||||
373 | // insert new entries above this line | ||||
374 | LastAttribute | ||||
375 | }; | ||||
376 | } | ||||
377 | | ||||
378 | QString elementName(Element::General elementID); | ||||
379 | QString attributeName(Attribute::General attributeID); | ||||
380 | | ||||
381 | QString elementName(Element::Transaction elementID); | ||||
382 | QString attributeName(Attribute::Transaction attributeID); | ||||
383 | | ||||
384 | QString elementName(Element::Account elementID); | ||||
385 | QString attributeName(Attribute::Account attributeID); | ||||
386 | | ||||
387 | QString elementName(Element::Payee elementID); | ||||
388 | QString attributeName(Attribute::Payee attributeID); | ||||
389 | | ||||
390 | QString attributeName(Attribute::Tag attributeID); | ||||
391 | | ||||
392 | QString attributeName(Attribute::Security attributeID); | ||||
393 | | ||||
394 | QString elementName(Element::KVP elementID); | ||||
395 | QString attributeName(Attribute::KVP attributeID); | ||||
396 | | ||||
397 | QString elementName(Element::Institution elementID); | ||||
398 | QString attributeName(Attribute::Institution attributeID); | ||||
399 | | ||||
400 | QString elementName(Element::Report elementID); | ||||
401 | QString attributeName(Attribute::Report attributeID); | ||||
402 | | ||||
403 | QString elementName(Element::Budget elementID); | ||||
404 | QString attributeName(Attribute::Budget attributeID); | ||||
405 | | ||||
406 | QString elementName(Element::Schedule elementID); | ||||
407 | QString attributeName(Attribute::Schedule attributeID); | ||||
408 | | ||||
409 | QString elementName(Element::OnlineJob elementID); | ||||
410 | QString attributeName(Attribute::OnlineJob attributeID); | ||||
411 | | ||||
412 | QString attributeName(Attribute::CostCenter attributeID); | ||||
413 | | ||||
414 | QString stdAccName(StdAccName stdAccID); | ||||
415 | QString tagName(Tag tagID); | ||||
416 | QString nodeName(Node nodeID); | ||||
417 | | ||||
418 | namespace eMyMoney { namespace Report { enum class RowType; } } | ||||
419 | namespace eMyMoney { namespace Report { enum class ColumnType; } } | ||||
420 | namespace eMyMoney { namespace Report { enum QueryColumn : int; } } | ||||
421 | namespace eMyMoney { namespace Report { enum class ChartType; } } | ||||
422 | namespace eMyMoney { namespace Report { enum class DataLock; } } | ||||
423 | namespace eMyMoney { namespace Report { enum class ReportType; } } | ||||
424 | namespace eMyMoney { namespace Report { enum class DetailLevel; } } | ||||
425 | | ||||
426 | QHash<eMyMoney::Report::RowType, QString> rowTypesLUT(); | ||||
427 | QString reportNames(eMyMoney::Report::RowType textID); | ||||
428 | eMyMoney::Report::RowType stringToRowType(const QString &text); | ||||
429 | QHash<eMyMoney::Report::ColumnType, QString> columTypesLUT(); | ||||
430 | QString reportNames(eMyMoney::Report::ColumnType textID); | ||||
431 | eMyMoney::Report::ColumnType stringToColumnType(const QString &text); | ||||
432 | QHash<eMyMoney::Report::QueryColumn, QString> queryColumnsLUT(); | ||||
433 | QString reportNamesForQC(eMyMoney::Report::QueryColumn textID); | ||||
434 | eMyMoney::Report::QueryColumn stringToQueryColumn(const QString &text); | ||||
435 | QHash<eMyMoney::Report::DetailLevel, QString> detailLevelLUT(); | ||||
436 | QString reportNames(eMyMoney::Report::DetailLevel textID); | ||||
437 | eMyMoney::Report::DetailLevel stringToDetailLevel(const QString &text); | ||||
438 | QHash<eMyMoney::Report::ChartType, QString> chartTypeLUT(); | ||||
439 | QString reportNames(eMyMoney::Report::ChartType textID); | ||||
440 | eMyMoney::Report::ChartType stringToChartType(const QString &text); | ||||
441 | QHash<int, QString> typeAttributeLUT(); | ||||
442 | QString typeAttributeToString(int textID); | ||||
443 | int stringToTypeAttribute(const QString &text); | ||||
444 | QHash<int, QString> stateAttributeLUT(); | ||||
445 | QString stateAttributeToString(int textID); | ||||
446 | int stringToStateAttribute(const QString &text); | ||||
447 | QHash<int, QString> dateLockLUT(); | ||||
448 | QString dateLockAttributeToString(int textID); | ||||
449 | int stringToDateLockAttribute(const QString &text); | ||||
450 | QHash<eMyMoney::Report::DataLock, QString> dataLockLUT(); | ||||
451 | QString reportNames(eMyMoney::Report::DataLock textID); | ||||
452 | eMyMoney::Report::DataLock stringToDataLockAttribute(const QString &text); | ||||
453 | QHash<int, QString> accountTypeAttributeLUT(); | ||||
454 | QString accountTypeAttributeToString(int textID); | ||||
455 | int stringToAccountTypeAttribute(const QString &text); | ||||
456 | eMyMoney::Report::ReportType rowTypeToReportType(eMyMoney::Report::RowType rowType); | ||||
457 | | ||||
458 | namespace eMyMoney { namespace Budget { enum class Level; } } | ||||
459 | | ||||
460 | QHash<eMyMoney::Budget::Level, QString> budgetLevelLUT(); | ||||
461 | QString budgetNames(eMyMoney::Budget::Level textID); | ||||
462 | eMyMoney::Budget::Level stringToBudgetLevel(const QString &text); | ||||
463 | | ||||
71 | #endif | 464 | #endif |