KCDDB

submit.h
1 /*
2  SPDX-FileCopyrightText: 2002 Rik Hemsley (rikkus) <[email protected]>
3  SPDX-FileCopyrightText: 2002 Benjamin Meyer <[email protected]>
4  SPDX-FileCopyrightText: 2002 Nadeem Hasan <[email protected]>
5  SPDX-FileCopyrightText: 2005 Richard Lärkäng <[email protected]>e>
6 
7  SPDX-License-Identifier: LGPL-2.0-or-later
8 */
9 
10 #ifndef KCDDB_SUBMIT_H
11 #define KCDDB_SUBMIT_H
12 
13 #include "cddb.h"
14 #include "cdinfo.h"
15 #include <QObject>
16 
17 namespace KIO
18 {
19  class Job;
20 }
21 
22 namespace KCDDB
23 {
24  class Submit : public CDDB, public QObject
25  {
26  public:
27 
28  enum Transport
29  {
30  HTTP,
31  SMTP
32  };
33 
34  Submit();
35  virtual ~Submit();
36 
37  Result submit( CDInfo cdInfo, const TrackOffsetList &offsetList);
38 
39  protected:
40  virtual KIO::Job* createJob(const CDInfo& cdInfo) = 0;
41  virtual Result runJob(KIO::Job* job) = 0;
42 
43  bool validCategory(const QString&);
44 
45  Result parseWrite( const QString & );
46  virtual void makeDiskData( const CDInfo&, const TrackOffsetList& );
47  QString diskData_;
48  };
49 }
50 
51 #endif // KCDDB_SUBMIT_H
52 // vim:tabstop=2:shiftwidth=2:expandtab:cinoptions=(s,U1,m1
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Fri Nov 26 2021 23:22:53 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.