File indexing completed on 2024-05-12 05:21:35
0001 /* 0002 SPDX-FileCopyrightText: 2010 BetterInbox <contact@betterinbox.com> 0003 SPDX-FileContributor: Gregory Schlomoff <gregory.schlomoff@gmail.com> 0004 0005 SPDX-License-Identifier: LGPL-2.1-or-later 0006 */ 0007 0008 #pragma once 0009 0010 #include <QByteArray> 0011 0012 namespace KSmtp 0013 { 0014 class ServerResponse 0015 { 0016 public: 0017 explicit ServerResponse(int code = 0, const QByteArray &text = QByteArray(), bool multiline = false); 0018 [[nodiscard]] int code() const; 0019 [[nodiscard]] QByteArray text() const; 0020 [[nodiscard]] bool isCode(int other) const; 0021 0022 [[nodiscard]] bool isMultiline() const; 0023 0024 private: 0025 QByteArray m_text; 0026 int m_code; 0027 bool m_multiline; 0028 }; 0029 }