akonadi
standardcontactactionmanager.cpp
45 Private( KActionCollection *actionCollection, QWidget *parentWidget, StandardContactActionManager *parent )
162 mGenericManager->action( Akonadi::StandardActionManager::SynchronizeCollections )->setWhatsThis(
340 mGenericManager->action( Akonadi::StandardActionManager::CopyItemToMenu )->setText( i18n( "Copy Contact To" ) );
343 mGenericManager->action( Akonadi::StandardActionManager::CopyItemToDialog )->setText( i18n( "Copy Contact To" ) );
354 mGenericManager->action( Akonadi::StandardActionManager::MoveItemToMenu )->setText( i18n( "Move Contact To" ) );
357 mGenericManager->action( Akonadi::StandardActionManager::MoveItemToDialog )->setText( i18n( "Move Contact To" ) );
368 mGenericManager->action( Akonadi::StandardActionManager::CopyItemToMenu )->setText( i18n( "Copy Group To" ) );
371 mGenericManager->action( Akonadi::StandardActionManager::CopyItemToDialog )->setText( i18n( "Copy Group To" ) );
382 mGenericManager->action( Akonadi::StandardActionManager::MoveItemToMenu )->setText( i18n( "Move Group To" ) );
385 mGenericManager->action( Akonadi::StandardActionManager::MoveItemToDialog )->setText( i18n( "Move Group To" ) );
396 mActions[ StandardContactActionManager::CreateContact ]->setEnabled( hasWritableCollection( KABC::Addressee::mimeType() ) );
399 mActions[ StandardContactActionManager::CreateContactGroup ]->setEnabled( hasWritableCollection( KABC::ContactGroup::mimeType() ) );
412 const Collection parentCollection = index.data( EntityTreeModel::ParentCollectionRole ).value<Collection>();
515 KMessageBox::error(mParentWidget, i18n("Contact cannot be stored: %1", error), i18n("Failed to store contact"));
528 StandardContactActionManager::StandardContactActionManager( KActionCollection *actionCollection, QWidget *parent )
538 void StandardContactActionManager::setCollectionSelectionModel( QItemSelectionModel *selectionModel )
578 action->setWhatsThis( i18n( "Create a new contact<p>You will be presented with a dialog where you can add data about a person, including addresses and phone numbers.</p>" ) );
588 action->setWhatsThis( i18n( "Create a new group<p>You will be presented with a dialog where you can add a new group of contacts.</p>" ) );
590 d->mActionCollection->addAction( QString::fromLatin1( "akonadi_contact_group_create" ), action );
597 action->setWhatsThis( i18n( "Edit the selected contact<p>You will be presented with a dialog where you can edit the data stored about a person, including addresses and phone numbers.</p>" ) );
646 void StandardContactActionManager::setActionText( StandardActionManager::Type type, const KLocalizedString &text )
660 void StandardContactActionManager::interceptAction( StandardActionManager::Type type, bool intercept )
Moves the selected items to trash and marks them as deleted, needs EntityDeletedAttribute.
Definition: standardactionmanager.h:163
Helper type for MoveToTrashRestoreItem, do not create directly. Use this to override texts of the res...
Definition: standardactionmanager.h:169
Menu allowing to move item into a collection.
Definition: standardactionmanager.h:148
Creates a new contact.
Definition: standardcontactactionmanager.h:55
A dialog for creating or editing a contact in Akonadi.
Definition: contacteditordialog.h:77
Creates an collection.
Definition: standardactionmanager.h:134
Moves the selected collection to trash and marks it as deleted, needs EntityDeletedAttribute.
Definition: standardactionmanager.h:162
The window title of an error message.
Definition: standardactionmanager.h:183
void setCollectionSelectionModel(QItemSelectionModel *selectionModel)
Sets the collection selection model based on which the collection related actions should operate...
Definition: standardcontactactionmanager.cpp:538
Copies the selected items.
Definition: standardactionmanager.h:139
Manages generic actions for collection and item views.
Definition: standardactionmanager.h:126
StandardContactActionManager(KActionCollection *actionCollection, QWidget *parent=0)
Creates a new standard contact action manager.
Definition: standardcontactactionmanager.cpp:528
Copy a collection into another collection, select the target in a dialog.
Definition: standardactionmanager.h:157
Creates a new contact group.
Definition: standardcontactactionmanager.h:56
Edits an existing contact.
Definition: contacteditordialog.h:87
Provides the resource properties.
Definition: standardactionmanager.h:154
Cuts the selected items.
Definition: standardactionmanager.h:150
void createAllActions()
Convenience method to create all standard actions.
Definition: standardcontactactionmanager.cpp:620
~StandardContactActionManager()
Destroys the standard contact action manager.
Definition: standardcontactactionmanager.cpp:533
void setCollectionPropertiesPageNames(const QStringList &names)
Definition: standardcontactactionmanager.cpp:675
Restores the selected items from trash, needs EntityDeletedAttribute.
Definition: standardactionmanager.h:165
KAction * action(Type type) const
Returns the action of the given type, 0 if it has not been created (yet).
Definition: standardcontactactionmanager.cpp:632
Toggles the work offline state of all resources.
Definition: standardactionmanager.h:156
Restores the selected collection from trash, needs EntityDeletedAttribute.
Definition: standardactionmanager.h:164
Helper type for MoveToTrashRestoreCollection, do not create directly. Use this to override texts of t...
Definition: standardactionmanager.h:167
Paste collections or items.
Definition: standardactionmanager.h:140
Akonadi::Item::List selectedItems() const
Returns the list of items that are currently selected.
Definition: standardcontactactionmanager.cpp:670
Edits the selected contact resp. contact group.
Definition: standardcontactactionmanager.h:57
Provides collection properties.
Definition: standardactionmanager.h:138
void actionStateUpdated()
This signal is emitted whenever the action state has been updated.
Remove the collection from the favorite collections model.
Definition: standardactionmanager.h:144
Copy an item into a collection, select the target in a dialog.
Definition: standardactionmanager.h:159
Add the collection to the favorite collections model.
Definition: standardactionmanager.h:143
KAction * createAction(Type type)
Creates the action of the given type and adds it to the action collection specified in the constructo...
Definition: standardcontactactionmanager.cpp:564
The window title of a message box.
Definition: standardactionmanager.h:180
Can create new items in this collection.
Definition: collection.h:89
Synchronizes collections in a recursive way.
Definition: standardactionmanager.h:161
Menu allowing to quickly copy a collection into another collection.
Definition: standardactionmanager.h:146
Akonadi::Collection::List selectedCollections() const
Returns the list of collections that are currently selected.
Definition: standardcontactactionmanager.cpp:665
The parent collection of the entity.
Definition: entitytreemodel.h:340
A dialog for creating or editing a contact group in Akonadi.
Definition: contactgroupeditordialog.h:75
Rights rights() const
Returns the rights the user has on the collection.
Definition: collection.cpp:99
Cuts the selected collections.
Definition: standardactionmanager.h:151
The window title of a dialog.
Definition: standardactionmanager.h:178
void setItemSelectionModel(QItemSelectionModel *selectionModel)
Sets the item selection model based on which the item related actions should operate.
Definition: standardcontactactionmanager.cpp:553
Menu allowing to quickly copy an item into a collection.
Definition: standardactionmanager.h:147
Manages contact specific actions for collection and item views.
Definition: standardcontactactionmanager.h:46
Synchronizes the selected resources.
Definition: standardactionmanager.h:155
Deletes the selected resources.
Definition: standardactionmanager.h:153
Edits an existing contact group.
Definition: contactgroupeditordialog.h:85
Copies the selected collections.
Definition: standardactionmanager.h:135
bool isWantedItem(const Item &item) const
Checks whether a given item has one of the wanted MIME types.
Definition: mimetypechecker.cpp:71
Creates a new contact group.
Definition: contactgroupeditordialog.h:84
QStringList contentMimeTypes() const
Returns a list of possible content mimetypes, e.g.
Definition: collection.cpp:115
The text of a message box.
Definition: standardactionmanager.h:181
void interceptAction(Type type, bool intercept=true)
Sets whether the default implementation for the given action type shall be executed when the action i...
Definition: standardcontactactionmanager.cpp:651
Move Item to Trash or Restore it from Trash, needs EntityDeletedAttribute.
Definition: standardactionmanager.h:168
Creates a new resource.
Definition: standardactionmanager.h:152
Move an item into a collection, select the target in a dialog.
Definition: standardactionmanager.h:160
Move a collection into another collection, select the target in a dialog.
Definition: standardactionmanager.h:158
Synchronizes collections.
Definition: standardactionmanager.h:137
Move Collection to Trash or Restore it from Trash, needs EntityDeletedAttribute.
Definition: standardactionmanager.h:166
Manages local subscriptions.
Definition: standardactionmanager.h:142
The text of an error message.
Definition: standardactionmanager.h:184
void setActionText(StandardActionManager::Type type, const KLocalizedString &text)
Sets the label of the action type to text, which is used during updating the action state and substit...
Definition: standardcontactactionmanager.cpp:646
Deletes the selected items.
Definition: standardactionmanager.h:141
Deletes the selected collections.
Definition: standardactionmanager.h:136
Menu allowing to move a collection into another collection.
Definition: standardactionmanager.h:149
Rename the collection of the favorite collections model.
Definition: standardactionmanager.h:145
Synchronize favorite collections.
Definition: standardactionmanager.h:170
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:00:28 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:00:28 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.