Akonadi

transportresourcebase.h
1 /*
2  SPDX-FileCopyrightText: 2009 Constantin Berzan <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6 
7 #ifndef AKONADI_TRANSPORTRESOURCEBASE_H
8 #define AKONADI_TRANSPORTRESOURCEBASE_H
9 
10 #include "akonadiagentbase_export.h"
11 #include "item.h"
12 
13 #include <QString>
14 
15 namespace Akonadi
16 {
17 
18 class TransportResourceBasePrivate;
19 
40 class AKONADIAGENTBASE_EXPORT TransportResourceBase
41 {
42 public:
47 
51  virtual ~TransportResourceBase();
52 
58  TransportFailed
59  };
60 
69  virtual void sendItem(const Akonadi::Item &item) = 0;
70 
81  void itemSent(const Akonadi::Item &item, TransportResult result,
82  const QString &message = QString());
83 
84 private:
85  //@cond PRIVATE
86  TransportResourceBasePrivate *const d;
87  //@endcond
88 };
89 
90 }
91 
92 #endif
Resource implementing mail transport capability.
TransportResult
Describes the result of the transport process.
Helper integration between Akonadi and Qt.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sun Jul 12 2020 23:16:58 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.