on 7.84+14.04.20140314-0ubuntu1 help sign in
unity8/tools/registry-tracker.h
44 lines 1.1 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>
27class RegistryTracker
29public:
30 RegistryTracker(QString const&);
31 ~RegistryTracker();
33 QProcess* registry() const;
35private:
36 void runRegistry();
38 QString m_scopeDir;
39 QProcess m_registry;
40 QTemporaryDir m_endpoints_dir;
41 QTemporaryFile m_runtime_config;
42 QTemporaryFile m_registry_config;
43 QTemporaryFile m_mw_config;
44};