Fix typo
[kdepim.git] / ksendemail / mailerservice.h
blob4eb4cbc89498944f40e665afce93b7bc12e2f911
1 /*
2 This file is part of KSendEmail. Some of the code has been taken from KMail (kmkernel.cpp)
3 and akonadi (control.h)
4 Copyright (c) 2008 Pradeepto Bhattacharya <pradeepto@kde.org>
6 This library is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Library General Public
8 License as published by the Free Software Foundation; either
9 version 2 of the License, or (at your option) any later version.
11 This library is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 Library General Public License for more details.
16 You should have received a copy of the GNU Library General Public License
17 along with this library; see the file COPYING.LIB. If not, write to
18 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 Boston, MA 02110-1301, USA.
22 #ifndef MAILERSERVICE_H
23 #define MAILERSERVICE_H
25 class QEventLoop;
27 #include <QObject>
29 #include <kcmdlineargs.h>
31 class MailerService : public QObject
33 Q_OBJECT
35 public:
36 MailerService();
37 virtual ~MailerService();
39 bool start();
40 void processArgs( KCmdLineArgs *args );
42 private slots :
43 void serviceOwnerChanged( const QString&, const QString&, const QString& );
45 private :
46 bool mSuccess;
47 QString mDBusService;
48 QString mError;
49 QEventLoop *mEventLoop;
51 #endif