File indexing completed on 2024-04-21 08:44:17

0001 /*
0002     SPDX-FileCopyrightText: 2003 Richard Lärkäng <nouseforaname@home.se>
0003 
0004     SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #ifndef ASYNCHTTPSUBMIT_H
0008 #define ASYNCHTTPSUBMIT_H
0009 
0010 #include "httpsubmit.h"
0011 
0012 class KJob;
0013 
0014 namespace KCDDB
0015 {
0016   class AsyncHTTPSubmit : public HTTPSubmit
0017   {
0018     Q_OBJECT
0019     public:
0020       AsyncHTTPSubmit(const QString& from, const QString& hostname, uint port);
0021       virtual ~AsyncHTTPSubmit();
0022 
0023     Q_SIGNALS:
0024       void finished( KCDDB::Result );
0025     protected:
0026       Result runJob(KIO::Job* job) override;
0027     private Q_SLOTS:
0028       void slotFinished(KJob*);
0029   } ;
0030 }
0031 
0032 
0033 #endif // ASYNCHTTPSUBMIT_H
0034