Commit f9148e8e authored by Volker Krause's avatar Volker Krause

Add KCModule for mail transport configuration.

svn path=/trunk/KDE/kdepim/mailtransport/; revision=620884
parent c0c2eae8
......@@ -35,3 +35,11 @@ set_target_properties(mailtransport PROPERTIES VERSION 1.0.0 SOVERSION 1)
install(TARGETS mailtransport DESTINATION ${LIB_INSTALL_DIR})
install(FILES mailtransport.kcfg DESTINATION ${KCFG_INSTALL_DIR})
set(mailtransport_kcm_srcs configmodule.cpp)
kde4_automoc(${mailtransport_kcm_srcs})
kde4_add_plugin(kcm_mailtransport ${mailtransport_kcm_srcs})
target_link_libraries(kcm_mailtransport ${KDE4_KDEUI_LIBS} mailtransport)
install(TARGETS kcm_mailtransport DESTINATION ${PLUGIN_INSTALL_DIR})
install(FILES kcm_mailtransport.desktop DESTINATION ${SERVICES_INSTALL_DIR})
......@@ -9,7 +9,7 @@
The mailtransport module consists of the following components:
- a shared library containing the above listed functionality
- a KCModule which can be embedded into your application to provide mail transport configuration (not yet implemented)
- a KCModule which can be embedded into your application to provide mail transport configuration
- a KDED module which provides a D-Bus interface to mail transport settings and mail sending (not yet implemented)
*/
......
......@@ -4,6 +4,7 @@ Mail Transport TODO
General
-------
- compile without QT3_SUPPORT
- install mailtransport.upd once KMail and KNode are ported
Migration
---------
......@@ -13,6 +14,7 @@ Migration
TransportManager
----------------
- load passwords if another instance opens the wallet
- add D-Bus interface for sending mails
Transport
---------
......
/*
Copyright (c) 2007 Volker Krause <vkrause@kde.org>
This library is free software; you can redistribute it and/or modify it
under the terms of the GNU Library General Public License as published by
the Free Software Foundation; either version 2 of the License, or (at your
option) any later version.
This library is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to the
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301, USA.
*/
#include "configmodule.h"
#include "transportmanagementwidget.h"
#include <kgenericfactory.h>
#include <qboxlayout.h>
using namespace MailTransport;
typedef KGenericFactory<ConfigModule, QWidget> MailTransportConfigFactory;
K_EXPORT_COMPONENT_FACTORY( kcm_mailtransport, MailTransportConfigFactory( "mailtrasnport" ) )
ConfigModule::ConfigModule( QWidget * parent, const QStringList & args ) :
KCModule( MailTransportConfigFactory::instance(), parent, args )
{
setButtons( 0 );
QVBoxLayout *l = new QVBoxLayout( this );
l->setMargin( 0 );
TransportManagementWidget *tmw = new TransportManagementWidget( this );
l->addWidget( tmw );
}
/*
Copyright (c) 2007 Volker Krause <vkrause@kde.org>
This library is free software; you can redistribute it and/or modify it
under the terms of the GNU Library General Public License as published by
the Free Software Foundation; either version 2 of the License, or (at your
option) any later version.
This library is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to the
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301, USA.
*/
#ifndef MAILTRANSPORT_CONFIGMODULE_H
#define MAILTRANSPORT_CONFIGMODULE_H
#include <kcmodule.h>
namespace MailTransport {
/**
KCModule for transport management.
*/
class ConfigModule : public KCModule
{
public:
ConfigModule( QWidget *parent = 0, const QStringList &args = QStringList() );
};
}
#endif
[Desktop Entry]
Encoding=UTF-8
Icon=network
Type=Service
ServiceTypes=KCModule
X-KDE-ModuleType=Library
X-KDE-Library=mailtransport
X-KDE-FactoryName=kcm_mailtransport
X-KDE-HasReadOnlyMode=false
X-KDE-ParentApp=
X-KDE-ParentComponents=
X-KDE-CfgDlgHierarchy=
Name=Mail Transport
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment