on 8.02+15.04.20150422-0ubuntu1 help sign in
unity8/tools/registry-tracker.h
49 lines 1.3 kB history raw
1/*
2 * Copyright (C) 2013 Canonical, Ltd.
3 *
4 * Authors:
5 * Michal Hruby <michal.hruby@canonical.com>
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; version 3.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18 */
20// Qt
21#include <QProcess>
22#include <QTemporaryFile>
23#include <QTemporaryDir>
24#include <QDebug>
25#include <QStringList>
26#include <QScopedPointer>
29class RegistryTracker
31public:
32 RegistryTracker(QStringList const&, bool, bool);
33 ~RegistryTracker();
35 QProcess* registry() const;
37private:
38 void runRegistry();
40 QStringList m_scopes;
41 bool m_systemScopes;
42 bool m_serverScopes;
43 QProcess m_registry;
44 QTemporaryDir m_endpoints_dir;
45 QTemporaryFile m_runtime_config;
46 QTemporaryFile m_registry_config;
47 QTemporaryFile m_mw_config;
48 QScopedPointer<QTemporaryDir> m_scopeInstallDir;
49};