~ubuntu-branches/ubuntu/saucy/kactivities/saucy-proposed

« back to all changes in this revision

Viewing changes to service/jobs/encryption/Common.h

  • Committer: Package Import Robot
  • Author(s): Scott Kitterman, Jonathan Riddell, Scott Kitterman
  • Date: 2012-11-20 13:47:27 UTC
  • mfrom: (1.1.13)
  • Revision ID: package-import@ubuntu.com-20121120134727-vqzk04slqjoay3de
Tags: 4:4.9.80-0ubuntu1
[ Jonathan Riddell ]
* New upstream beta release

[ Scott Kitterman ]
* Add new libkactivities-models1 library package (debian/control, .install,
  and .symbols)
* Add nepomuk-core-dev to build-depends
* Wildcard libkactivities6.install so that soversion changes don't cause
  build failures
* Update libkactivities6.symbols
* Update libkactivities-dev.install for new files for libkactivies-models
* Add new files to libkactivities-bin.install, including Activities kcm

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 *   Copyright (C) 2012 Ivan Cukic <ivan.cukic(at)kde.org>
3
 
 *
4
 
 *   This program is free software; you can redistribute it and/or modify
5
 
 *   it under the terms of the GNU General Public License version 2,
6
 
 *   or (at your option) any later version, as published by the Free
7
 
 *   Software Foundation
8
 
 *
9
 
 *   This program is distributed in the hope that it will be useful,
10
 
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
11
 
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
 
 *   GNU General Public License for more details
13
 
 *
14
 
 *   You should have received a copy of the GNU General Public
15
 
 *   License along with this program; if not, write to the
16
 
 *   Free Software Foundation, Inc.,
17
 
 *   51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
18
 
 */
19
 
 
20
 
#ifndef JOBS_ENCRYPTION_COMMON_H
21
 
#define JOBS_ENCRYPTION_COMMON_H
22
 
 
23
 
#include <QString>
24
 
 
25
 
class QProcess;
26
 
 
27
 
namespace Jobs {
28
 
namespace Encryption {
29
 
 
30
 
namespace Private {
31
 
    class Encfs;
32
 
} // namespace Private
33
 
 
34
 
namespace Common {
35
 
 
36
 
    bool isEnabled();
37
 
    bool isActivityEncrypted(const QString & activity);
38
 
 
39
 
    QProcess * execMount(const QString & activity, const QString & password);
40
 
    QProcess * execUnmount(const QString & activity);
41
 
 
42
 
    void unmountAllExcept(const QString & activity);
43
 
    void unmountAll();
44
 
 
45
 
    enum FolderType {
46
 
        NormalFolder = 0,
47
 
        EncryptedFolder = 1,
48
 
        MountPointFolder = 2,
49
 
 
50
 
        FirstFolderType = 8,
51
 
        ActivityFolder = 8,
52
 
        UserDataFolder = 9,
53
 
        ConfigFolder = 10,
54
 
        DataFolder = 11,
55
 
        AutostartFolder = 12,
56
 
        AutostopFolder = 13,
57
 
        LastFolderType = 13
58
 
    };
59
 
 
60
 
    QString folderPath(const QString & activity, FolderType type);
61
 
    QString folderName(FolderType type);
62
 
 
63
 
} // namespace Common
64
 
} // namespace Encryption
65
 
} // namespace Jobs
66
 
 
67
 
#endif // JOBS_ENCRYPTION_COMMON_H
68