Warning, file /frameworks/kdav/src/common/davitemcreatejob.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 /*
0002     SPDX-FileCopyrightText: 2010 Tobias Koenig <tokoe@kde.org>
0003 
0004     SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #ifndef KDAV_DAVITEMCREATEJOB_H
0008 #define KDAV_DAVITEMCREATEJOB_H
0009 
0010 #include "kdav_export.h"
0011 
0012 #include "davitem.h"
0013 #include "davjobbase.h"
0014 #include "davurl.h"
0015 
0016 namespace KDAV
0017 {
0018 class DavItemCreateJobPrivate;
0019 
0020 /**
0021  * @class DavItemCreateJob davitemcreatejob.h <KDAV/DavItemCreateJob>
0022  *
0023  * @short A job to create a DAV item on the DAV server.
0024  */
0025 class KDAV_EXPORT DavItemCreateJob : public DavJobBase
0026 {
0027     Q_OBJECT
0028 
0029 public:
0030     /**
0031      * Creates a new DAV item create job.
0032      *
0033      * @param item The item that shall be created.
0034      * @param parent The parent object.
0035      */
0036     explicit DavItemCreateJob(const DavItem &item, QObject *parent = nullptr);
0037 
0038     /**
0039      * Starts the job.
0040      */
0041     void start() override;
0042 
0043     /**
0044      * Returns the created DAV item including the correct identifier URL
0045      * and current ETag information.
0046      */
0047     Q_REQUIRED_RESULT DavItem item() const;
0048 
0049     Q_REQUIRED_RESULT QUrl itemUrl() const;
0050 
0051 private:
0052     Q_DECLARE_PRIVATE(DavItemCreateJob)
0053 };
0054 }
0055 
0056 #endif