now for real
This commit is contained in:
parent
c6ec94f654
commit
838bc4c757
@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE QtCreatorProject>
|
||||
<!-- Written by QtCreator 7.0.2, 2022-07-13T17:39:58. -->
|
||||
<!-- Written by QtCreator 7.0.2, 2022-07-13T20:03:56. -->
|
||||
<qtcreator>
|
||||
<data>
|
||||
<variable>EnvironmentId</variable>
|
||||
@ -92,7 +92,7 @@
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Desktop</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Desktop</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">{0d1d96e7-0317-4f7a-a513-68284676b112}</value>
|
||||
<value type="int" key="ProjectExplorer.Target.ActiveBuildConfiguration">1</value>
|
||||
<value type="int" key="ProjectExplorer.Target.ActiveBuildConfiguration">0</value>
|
||||
<value type="int" key="ProjectExplorer.Target.ActiveDeployConfiguration">0</value>
|
||||
<value type="int" key="ProjectExplorer.Target.ActiveRunConfiguration">0</value>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.0">
|
||||
@ -218,7 +218,7 @@
|
||||
<value type="bool" key="RunConfiguration.UseLibrarySearchPath">true</value>
|
||||
<value type="bool" key="RunConfiguration.UseQmlDebugger">false</value>
|
||||
<value type="bool" key="RunConfiguration.UseQmlDebuggerAuto">true</value>
|
||||
<value type="QString" key="RunConfiguration.WorkingDirectory.default">/home/SMB.BASEALT.RU/kozyrevid/work/new_alterator/release</value>
|
||||
<value type="QString" key="RunConfiguration.WorkingDirectory.default">/home/SMB.BASEALT.RU/kozyrevid/work/new_alterator/build</value>
|
||||
</valuemap>
|
||||
<value type="int" key="ProjectExplorer.Target.RunConfigurationCount">1</value>
|
||||
</valuemap>
|
||||
|
5
alterator/alteratorlibConfig.h.in
Normal file
5
alterator/alteratorlibConfig.h.in
Normal file
@ -0,0 +1,5 @@
|
||||
#ifndef ALTERATORLIB_VERSION_H_
|
||||
#define ALTERATORLIB_VERSION_H_
|
||||
#define ALTERATORLIB_VERSION "${PROJECT_VERSION}"
|
||||
#endif /*LIBNSS_ROLE_VERSION_H_*/
|
||||
|
@ -12,8 +12,12 @@ DBusConnector::DBusConnector(QObject *parent): QObject(parent)
|
||||
"org.freedesktop.hostname1", false, "hostname");
|
||||
}
|
||||
|
||||
void DBusConnector::addInterface(QString service, QString path, QString interface, bool isSessionBus, QString shortName){
|
||||
QDBusInterface *iface = new QDBusInterface(service, path, interface, isSessionBus ? QDBusConnection::sessionBus() : QDBusConnection::systemBus(), this);
|
||||
void DBusConnector::addInterface(QString service, QString path, QString interface
|
||||
, bool isSessionBus, QString shortName){
|
||||
QDBusInterface *iface =
|
||||
new QDBusInterface(service, path, interface, isSessionBus
|
||||
? QDBusConnection::sessionBus()
|
||||
: QDBusConnection::systemBus(), this);
|
||||
interfaces.insert(shortName, iface);
|
||||
}
|
||||
|
||||
@ -32,7 +36,8 @@ QVariant DBusConnector::getProperty(QString interfaceName, QString propertyName)
|
||||
}
|
||||
}
|
||||
|
||||
bool DBusConnector::setProperty(QString interfaceName, QString propertyName, QVariant value){
|
||||
bool DBusConnector::setProperty(QString interfaceName, QString propertyName
|
||||
, QVariant value){
|
||||
try{
|
||||
if (interfaces.contains(interfaceName)){
|
||||
return interfaces[interfaceName]->setProperty(propertyName.toLocal8Bit().constData(), value);
|
||||
|
Loading…
Reference in New Issue
Block a user