removed the content from template.docbook, which is completly unrelated to kmobiletools
[kdepim.git] / korn / dbus_proto.cpp
blob361dbf2e92b43e022e738a1a9134eb3d4df667b9
1 /*
2 * Copyright (C) 2005, Mart Kelder (mart.kde@hccnet.nl)
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 #include "dbus_proto.h"
22 #include "account_input.h"
23 #include "dbusdrop.h"
24 #include "settings.h"
26 #include <kconfigbase.h>
27 #include <klocale.h>
29 #include <QMap>
30 #include <q3ptrlist.h>
31 #include <QVector>
33 KMailDrop* DBUS_Protocol::createMaildrop( AccountSettings* ) const
35 return new DBUSDrop();
38 QMap< QString, QString > * DBUS_Protocol::createConfig( AccountSettings *settings ) const
40 return new QMap< QString, QString >( settings->readEntries() );
43 QString DBUS_Protocol::configName() const
45 return "dbus";
48 void DBUS_Protocol::configFillGroupBoxes( QStringList* groupBoxes ) const
50 groupBoxes->append( "DBUS" );
53 void DBUS_Protocol::configFields( QVector< QWidget* >* vector, const QObject*, QList< AccountInput* >* result ) const
55 result->append( new TextInput( vector->at( 0 ), i18n( "D-Bus name" ), TextInput::text, "korn_dbus", "dbusname" ) );
58 void DBUS_Protocol::readEntries( QMap< QString, QString >* ) const
62 void DBUS_Protocol::writeEntries( QMap< QString, QString >* ) const