Changeset View
Changeset View
Standalone View
Standalone View
incidenceeditor-ng/incidencecategories.h
Show First 20 Lines • Show All 46 Lines • ▼ Show 20 Lines | public: | ||||
QStringList categories() const; | QStringList categories() const; | ||||
virtual bool isDirty() const; | virtual bool isDirty() const; | ||||
/**reimp*/ | /**reimp*/ | ||||
void printDebugInfo() const; | void printDebugInfo() const; | ||||
private slots: | private slots: | ||||
void onSelectionChanged(const Akonadi::Tag::List &); | void onSelectionChanged(const Akonadi::Tag::List &); | ||||
void onTagsFetchResult(); | |||||
void onTagsReceived(const Akonadi::Tag::List &); | void onTagsReceived(const Akonadi::Tag::List &); | ||||
void onTagCreated(KJob *job); | void onTagCreated(KJob *job); | ||||
private: | private: | ||||
/** If the incidence comes from outside of KDE it can contain unknown categories. | /** If the incidence comes from outside of KDE it can contain unknown categories. | ||||
* KOrganizer usually checks for these, but it can happen that it checks before the | * KOrganizer usually checks for these, but it can happen that it checks before the | ||||
* items are in the ETM, due to akonadi's async nature. | * items are in the ETM, due to akonadi's async nature. | ||||
* So we make the check inside the editor, and add new categories to config. This way | * So we make the check inside the editor, and add new categories to config. This way | ||||
* the editor can be used standalone too. | * the editor can be used standalone too. | ||||
* */ | * */ | ||||
void checkForUnknownCategories( const QStringList &categoriesToCheck ); | void checkForUnknownCategories( const QStringList &categoriesToCheck ); | ||||
Ui::EventOrTodoDesktop *mUi; | Ui::EventOrTodoDesktop *mUi; | ||||
Akonadi::Tag::List mSelectedTags; | Akonadi::Tag::List mSelectedTags; | ||||
QStringList mCategoriesToCheck; | |||||
bool mDirty; | bool mDirty; | ||||
}; | }; | ||||
} | } | ||||
#endif | #endif |