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 "session.h" 0011 0012 namespace KSmtp 0013 { 0014 class SessionPrivate; 0015 0016 class JobPrivate 0017 { 0018 public: 0019 JobPrivate(Session *session, const QString &name) 0020 : m_session(session) 0021 , m_name(name) 0022 { 0023 } 0024 0025 virtual ~JobPrivate() = default; 0026 0027 inline SessionPrivate *sessionInternal() 0028 { 0029 return m_session->d; 0030 } 0031 0032 inline const SessionPrivate *sessionInternal() const 0033 { 0034 return m_session->d; 0035 } 0036 0037 Session *m_session = nullptr; 0038 QString m_name; 0039 }; 0040 }