Sonde v1.1.0
Embeddable Model Context Protocol server for Qt applications
Loading...
Searching...
No Matches
trustcommand.h
Go to the documentation of this file.
1#pragma once
2
5
6#include <QtCore/QString>
7#include <QtCore/QStringList>
8
9namespace Sonde::Cli {
10
14QString libraryRelativePath(const QString &name);
15
18QString libraryFileName(const QString &relative);
19
22{
23 QStringList names;
24 bool user = false;
25 bool all = false;
26 bool list = false;
27 bool revoke = false;
28};
29
31TrustRequest parseTrustArguments(const QStringList &args);
32
34void trustCommand(const TrustRequest &request);
35
36} // namespace Sonde::Cli
What sonde trust was asked to do.
Definition trustcommand.h:22
bool list
--list: show what is trusted.
Definition trustcommand.h:26
bool all
--all: every file in the library.
Definition trustcommand.h:25
bool revoke
--revoke: stop trusting the named files.
Definition trustcommand.h:27
bool user
--user: the user library instead of the project's.
Definition trustcommand.h:24
QStringList names
The templates or components named.
Definition trustcommand.h:23
QString libraryFileName(const QString &relative)
How the application names the file at relative in its library: a template by its name,...
Definition trustcommand.cpp:105
QString libraryRelativePath(const QString &name)
The file name name refers to in a library, relative to it: a path as it is (with a '/'),...
Definition trustcommand.cpp:96
void trustCommand(const TrustRequest &request)
sonde trust: does what request asks.
Definition trustcommand.cpp:124
TrustRequest parseTrustArguments(const QStringList &args)
sonde trust with the arguments args, as argparse read them.
Definition trustcommand.cpp:112