~ubuntu-branches/ubuntu/vivid/kdesdk/vivid

« back to all changes in this revision

Viewing changes to okteta/kasten/gui/system/bytearrayviewprofilelock.h

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2012-06-06 11:49:54 UTC
  • mfrom: (0.4.21)
  • Revision ID: package-import@ubuntu.com-20120606114954-rdls73fzlpzxglbx
Tags: 4:4.8.80-0ubuntu1
* New uptream beta release
* Update dont_export_private_classes.diff

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
    This file is part of the Okteta Kasten module, made within the KDE community.
 
3
 
 
4
    Copyright 2011-2012 Friedrich W. H. Kossebau <kossebau@kde.org>
 
5
 
 
6
    This library is free software; you can redistribute it and/or
 
7
    modify it under the terms of the GNU Lesser General Public
 
8
    License as published by the Free Software Foundation; either
 
9
    version 2.1 of the License, or (at your option) version 3, or any
 
10
    later version accepted by the membership of KDE e.V. (or its
 
11
    successor approved by the membership of KDE e.V.), which shall
 
12
    act as a proxy defined in Section 6 of version 3 of the license.
 
13
 
 
14
    This library is distributed in the hope that it will be useful,
 
15
    but WITHOUT ANY WARRANTY; without even the implied warranty of
 
16
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
17
    Lesser General Public License for more details.
 
18
 
 
19
    You should have received a copy of the GNU Lesser General Public
 
20
    License along with this library. If not, see <http://www.gnu.org/licenses/>.
 
21
*/
 
22
 
 
23
#ifndef BYTEARRAYVIEWPROFILELOCK_H
 
24
#define BYTEARRAYVIEWPROFILELOCK_H
 
25
 
 
26
// lib
 
27
#include "bytearrayviewprofile.h"
 
28
// Qt
 
29
#include <QtCore/QSharedDataPointer>
 
30
 
 
31
class QString;
 
32
 
 
33
 
 
34
namespace Kasten2
 
35
{
 
36
class ByteArrayViewProfileLockPrivate;
 
37
 
 
38
class OKTETAKASTENGUI_EXPORT ByteArrayViewProfileLock
 
39
{
 
40
  friend class ByteArrayViewProfileManager;
 
41
 
 
42
  protected:
 
43
    ByteArrayViewProfileLock( const QString& fileName,
 
44
                              const ByteArrayViewProfile::Id& viewProfileId );
 
45
 
 
46
  public:
 
47
    ByteArrayViewProfileLock( const ByteArrayViewProfileLock& other );
 
48
 
 
49
    ~ByteArrayViewProfileLock();
 
50
 
 
51
  public:
 
52
    ByteArrayViewProfileLock& operator=( const ByteArrayViewProfileLock& other );
 
53
 
 
54
  public:
 
55
    void unlock();
 
56
    bool isLocked() const;
 
57
    ByteArrayViewProfile::Id viewProfileId() const;
 
58
 
 
59
  private:
 
60
    QSharedDataPointer<ByteArrayViewProfileLockPrivate> d;
 
61
};
 
62
 
 
63
}
 
64
 
 
65
#endif