/
unit.h
30 lines (21 loc) · 740 Bytes
1
2
#ifndef _CUTES_UNIT_HPP_
#define _CUTES_UNIT_HPP_
3
4
5
6
7
8
9
/**
* @file unit.hpp
* @brief Vault unit option parsing and file export/import support
* @author Denis Zalevskiy <denis.zalevskiy@jolla.com>
* @copyright (C) 2014 Jolla Ltd.
* @par License: LGPL 2.1 http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html
*/
10
11
#include <memory>
12
#include <QString>
13
14
#include <QVariantMap>
15
namespace qtaround { namespace sys { class GetOpt; }}
16
17
18
namespace vault { namespace unit {
19
20
typedef std::unique_ptr<qtaround::sys::GetOpt> options_uptr;
options_uptr getopt();
21
22
int execute(options_uptr, QVariantMap const &info);
23
24
25
26
27
int execute(QVariantMap const &info);
int runProcess(const QString &program, const QStringList &args);
28
29
30
}}
#endif // _CUTES_UNIT_HPP_