akonadi/clients
collectioninternalspage.cpp
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #include "collectioninternalspage.h"
00021
00022 #include <akonadi/collection.h>
00023
00024 using namespace Akonadi;
00025
00026 CollectionInternalsPage::CollectionInternalsPage(QWidget * parent) :
00027 CollectionPropertiesPage( parent )
00028 {
00029 setPageTitle( i18n( "Internals" ) );
00030 ui.setupUi( this );
00031 }
00032
00033 void CollectionInternalsPage::load(const Akonadi::Collection & col)
00034 {
00035 ui.idLabel->setText( QString::number( col.id() ) );
00036 ui.ridEdit->setText( col.remoteId() );
00037 ui.resourceLabel->setText( col.resource() );
00038 ui.contentTypes->setItems( col.contentMimeTypes() );
00039 }
00040
00041 void CollectionInternalsPage::save(Akonadi::Collection & col)
00042 {
00043 col.setRemoteId( ui.ridEdit->text() );
00044 col.setContentMimeTypes( ui.contentTypes->items() );
00045 }
00046
00047 #include "collectioninternalspage.moc"