Changeset View
Changeset View
Standalone View
Standalone View
kmymoney/kmymoney.h
Show First 20 Lines • Show All 56 Lines • ▼ Show 20 Line(s) | |||||
57 | class MyMoneyTag; | 57 | class MyMoneyTag; | ||
58 | class MyMoneySplit; | 58 | class MyMoneySplit; | ||
59 | class MyMoneyTransaction; | 59 | class MyMoneyTransaction; | ||
60 | class WebConnect; | 60 | class WebConnect; | ||
61 | class creditTransfer; | 61 | class creditTransfer; | ||
62 | class IMyMoneyOperationsFormat; | 62 | class IMyMoneyOperationsFormat; | ||
63 | 63 | | |||
64 | template <class T> class onlineJobTyped; | 64 | template <class T> class onlineJobTyped; | ||
65 | typedef void (*KMyMoneyAppCallback)(int, int, const QString &); | ||||
65 | 66 | | |||
66 | namespace eDialogs { enum class ScheduleResultCode; } | 67 | namespace eDialogs { enum class ScheduleResultCode; } | ||
67 | namespace eMenu { enum class Action; | 68 | namespace eMenu { enum class Action; | ||
68 | enum class Menu; } | 69 | enum class Menu; } | ||
69 | 70 | | |||
70 | /*! \mainpage KMyMoney Main Page for API documentation. | 71 | /*! \mainpage KMyMoney Main Page for API documentation. | ||
71 | * | 72 | * | ||
72 | * \section intro Introduction | 73 | * \section intro Introduction | ||
▲ Show 20 Lines • Show All 252 Lines • ▼ Show 20 Line(s) | 324 | /** | |||
325 | * Valid container names are defined in kmymoneyui.rc | 326 | * Valid container names are defined in kmymoneyui.rc | ||
326 | */ | 327 | */ | ||
327 | void showContextMenu(const QString& containerName); | 328 | void showContextMenu(const QString& containerName); | ||
328 | 329 | | |||
329 | void createAccount(MyMoneyAccount& newAccount, MyMoneyAccount& parentAccount, MyMoneyAccount& brokerageAccount, MyMoneyMoney openingBal); | 330 | void createAccount(MyMoneyAccount& newAccount, MyMoneyAccount& parentAccount, MyMoneyAccount& brokerageAccount, MyMoneyMoney openingBal); | ||
330 | 331 | | |||
331 | QString filename() const; | 332 | QString filename() const; | ||
332 | QUrl filenameURL() const; | 333 | QUrl filenameURL() const; | ||
334 | void writeFilenameURL(const QUrl &url); | ||||
333 | 335 | | |||
334 | void addToRecentFiles(const QUrl& url); | 336 | void addToRecentFiles(const QUrl &url); | ||
335 | QTimer* autosaveTimer(); | 337 | QTimer* autosaveTimer(); | ||
336 | 338 | | |||
337 | /** | 339 | /** | ||
338 | * Checks if the file with the @a url already exists. If so, | 340 | * Checks if the file with the @a url already exists. If so, | ||
339 | * the user is asked if he/she wants to override the file. | 341 | * the user is asked if he/she wants to override the file. | ||
340 | * If the user's answer is negative, @p false will be returned. | 342 | * If the user's answer is negative, @p false will be returned. | ||
341 | * @p true will be returned in all other cases. | 343 | * @p true will be returned in all other cases. | ||
342 | */ | 344 | */ | ||
Show All 17 Lines | 360 | /** | |||
360 | * | 362 | * | ||
361 | * @retval true file is native | 363 | * @retval true file is native | ||
362 | * @retval false file is foreign | 364 | * @retval false file is foreign | ||
363 | */ | 365 | */ | ||
364 | bool isNativeFile(); | 366 | bool isNativeFile(); | ||
365 | 367 | | |||
366 | bool fileOpen() const; | 368 | bool fileOpen() const; | ||
367 | 369 | | |||
370 | KMyMoneyAppCallback progressCallback(); | ||||
371 | | ||||
372 | void consistencyCheck(bool alwaysDisplayResult); | ||||
373 | | ||||
368 | protected: | 374 | protected: | ||
369 | /** save general Options like all bar positions and status as well as the geometry and the recent file list to the configuration | 375 | /** save general Options like all bar positions and status as well as the geometry and the recent file list to the configuration | ||
370 | * file | 376 | * file | ||
371 | */ | 377 | */ | ||
372 | void saveOptions(); | 378 | void saveOptions(); | ||
373 | 379 | | |||
374 | /** | 380 | /** | ||
375 | * Creates the interfaces necessary for the plugins to work. Therefore, | 381 | * Creates the interfaces necessary for the plugins to work. Therefore, | ||
▲ Show 20 Lines • Show All 66 Lines • ▼ Show 20 Line(s) | 447 | /** | |||
442 | * saves the current document. If it has no name yet, the user | 448 | * saves the current document. If it has no name yet, the user | ||
443 | * will be queried for it. | 449 | * will be queried for it. | ||
444 | * | 450 | * | ||
445 | * @retval false save operation failed | 451 | * @retval false save operation failed | ||
446 | * @retval true save operation was successful | 452 | * @retval true save operation was successful | ||
447 | */ | 453 | */ | ||
448 | bool slotFileSave(); | 454 | bool slotFileSave(); | ||
449 | 455 | | |||
450 | /** | | |||
451 | * ask the user for the filename and save the current document | | |||
452 | * | | |||
453 | * @retval false save operation failed | | |||
454 | * @retval true save operation was successful | | |||
455 | */ | | |||
456 | bool slotFileSaveAs(); | | |||
457 | | ||||
458 | /** asks for saving if the file is modified, then closes the actual file and window */ | 456 | /** asks for saving if the file is modified, then closes the actual file and window */ | ||
459 | void slotFileCloseWindow(); | 457 | void slotFileCloseWindow(); | ||
460 | 458 | | |||
461 | /** asks for saving if the file is modified, then closes the actual file */ | 459 | /** asks for saving if the file is modified, then closes the actual file */ | ||
462 | void slotFileClose(); | 460 | void slotFileClose(); | ||
463 | 461 | | |||
464 | /** | 462 | /** | ||
465 | * closes all open windows by calling close() on each memberList item | 463 | * closes all open windows by calling close() on each memberList item | ||
▲ Show 20 Lines • Show All 239 Lines • Show Last 20 Lines |