File indexing completed on 2024-04-14 04:49:15

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 #include "synchttpsubmit.h"
0008 
0009 #include <KIO/Job>
0010 
0011 namespace KCDDB
0012 {
0013   SyncHTTPSubmit::SyncHTTPSubmit(const QString& from, const QString& hostname, uint port)
0014     : HTTPSubmit(from, hostname, port)
0015   {
0016 
0017   }
0018 
0019   SyncHTTPSubmit::~SyncHTTPSubmit()
0020   {
0021 
0022   }
0023 
0024   Result SyncHTTPSubmit::runJob(KIO::Job* job)
0025   {
0026     if (job->exec())
0027       return Success;
0028     else
0029       return UnknownError;
0030   }
0031 }