~mhr3/unity8/fix-1297246

« back to all changes in this revision

Viewing changes to tools/registry-tracker.h

  • Committer: Michal Hruby
  • Date: 2013-12-20 15:27:59 UTC
  • mto: This revision was merged to the branch mainline in revision 613.
  • Revision ID: michal.mhr@gmail.com-20131220152759-7o59l2oqwleinknu
Cherrypick the unity-scope-tool

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
 */
 
19
 
 
20
// Qt
 
21
#include <QProcess>
 
22
#include <QTemporaryFile>
 
23
#include <QTemporaryDir>
 
24
#include <QDebug>
 
25
 
 
26
 
 
27
class RegistryTracker
 
28
{
 
29
public:
 
30
    RegistryTracker(QString const&);
 
31
    ~RegistryTracker();
 
32
 
 
33
    QProcess* registry() const;
 
34
 
 
35
private:
 
36
    void runRegistry();
 
37
 
 
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
};