IncidenceEditorNG::EditorItemManager
#include <editoritemmanager.h>
Public Types | |
enum | ItemState { AfterSave , BeforeSave } |
enum | ItipPrivacy { ItipPrivacyPlain = 0 , ItipPrivacySign = 1 , ItipPrivacyEncrypt = 2 } |
typedef QFlags< ItipPrivacy > | ItipPrivacyFlags |
enum | SaveAction { Create , Modify , None , Move , MoveAndModify } |
Signals | |
void | itemSaveFailed (IncidenceEditorNG::EditorItemManager::SaveAction action, const QString &message) |
void | itemSaveFinished (IncidenceEditorNG::EditorItemManager::SaveAction action) |
void | revertFailed (const QString &message) |
void | revertFinished () |
Detailed Description
Helper class for creating dialogs that let the user create and edit the payload of Akonadi items (e.g.
events, contacts, etc). This class supports editing of one item at a time and handles all Akonadi specific logic like Item creation, Item modifying and monitoring of changes to the item during editing.
Definition at line 35 of file editoritemmanager.h.
Member Typedef Documentation
◆ ItipPrivacyFlags
typedef QFlags< ItipPrivacy > IncidenceEditorNG::EditorItemManager::ItipPrivacyFlags |
Definition at line 40 of file editoritemmanager.h.
Member Enumeration Documentation
◆ ItemState
Enumerator | |
---|---|
AfterSave | Returns the last saved item. |
BeforeSave | Returns an item with the original payload before the last save call. |
Definition at line 54 of file editoritemmanager.h.
◆ ItipPrivacy
enum IncidenceEditorNG::EditorItemManager::ItipPrivacy |
Definition at line 39 of file editoritemmanager.h.
◆ SaveAction
Definition at line 77 of file editoritemmanager.h.
Constructor & Destructor Documentation
◆ EditorItemManager()
|
explicit |
Creates an ItemEditor for a new Item.
ItemEditor.
Receives an option IncidenceChanger, so you can share the undo/redo stack with your application.
Definition at line 264 of file editoritemmanager.cpp.
◆ ~EditorItemManager()
|
overridedefault |
Destructs the ItemEditor.
Unsaved changes will get lost at this point.
Member Function Documentation
◆ item()
Akonadi::Item IncidenceEditorNG::EditorItemManager::item | ( | ItemState | state = AfterSave | ) | const |
Returns the last saved item with payload or an invalid item when save is not called yet.
Definition at line 273 of file editoritemmanager.cpp.
◆ load()
void IncidenceEditorNG::EditorItemManager::load | ( | const Akonadi::Item & | item | ) |
Loads the.
- Parameters
-
item into the editor. The item passed must be a valid item.
Definition at line 299 of file editoritemmanager.cpp.
◆ save()
void IncidenceEditorNG::EditorItemManager::save | ( | ItipPrivacyFlags | itipPrivacy = ItipPrivacyPlain | ) |
Saves the new or modified item.
This method does nothing when the ui is not dirty.
Definition at line 311 of file editoritemmanager.cpp.
◆ setIsCounterProposal()
void IncidenceEditorNG::EditorItemManager::setIsCounterProposal | ( | bool | isCounterProposal | ) |
Definition at line 364 of file editoritemmanager.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:19:37 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.