Warning, file /utilities/okteta/kasten/gui/system/bytearrayviewprofilelock.hpp was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 /* 0002 This file is part of the Okteta Kasten module, made within the KDE community. 0003 0004 SPDX-FileCopyrightText: 2011-2012 Friedrich W. H. Kossebau <kossebau@kde.org> 0005 0006 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL 0007 */ 0008 0009 #ifndef KASTEN_BYTEARRAYVIEWPROFILELOCK_HPP 0010 #define KASTEN_BYTEARRAYVIEWPROFILELOCK_HPP 0011 0012 // lib 0013 #include "bytearrayviewprofile.hpp" 0014 // Qt 0015 #include <QSharedDataPointer> 0016 0017 class QString; 0018 0019 namespace Kasten { 0020 class ByteArrayViewProfileLockPrivate; 0021 0022 class OKTETAKASTENGUI_EXPORT ByteArrayViewProfileLock 0023 { 0024 friend class ByteArrayViewProfileManager; 0025 0026 protected: 0027 ByteArrayViewProfileLock(const QString& fileName, 0028 const ByteArrayViewProfile::Id& viewProfileId); 0029 0030 public: 0031 ByteArrayViewProfileLock(const ByteArrayViewProfileLock& other); 0032 0033 ~ByteArrayViewProfileLock(); 0034 0035 public: 0036 ByteArrayViewProfileLock& operator=(const ByteArrayViewProfileLock& other); 0037 0038 public: 0039 void unlock(); 0040 bool isLocked() const; 0041 ByteArrayViewProfile::Id viewProfileId() const; 0042 0043 private: 0044 QSharedDataPointer<ByteArrayViewProfileLockPrivate> d; 0045 }; 0046 0047 } 0048 0049 #endif