connectivity-api: connectivityqt/openvpn-connection.cpp File Reference

connectivity-api

Namespaces | Macros
openvpn-connection.cpp File Reference
`#include <connectivityqt/openvpn-connection.h>`
`#include <util/dbus-property-cache.h>`
`#include <dbus-types.h>`
`#include <OpenVpnConnectionInterface.h>`
`#include "openvpn-connection.moc"`
Include dependency graph for openvpn-connection.cpp:

## Namespaces
| connectivityqt

## Macros
#define | DEFINE_PROPERTY_GETTER(name, strname, type, conversion)
#define | DEFINE_PROPERTY_GETTER_ENUM(name, strname, type)
#define | DEFINE_PROPERTY_SETTER(uppername, strname, type)
#define | DEFINE_PROPERTY_SETTER_ENUM(uppername, strname, type)
#define | DEFINE_PROPERTY_UPDATE(varname, strname, conversion)
#define | DEFINE_PROPERTY_UPDATE_ENUM(varname, strname, type)

## Macro Definition Documentation

## ◆ DEFINE_PROPERTY_GETTER

#define DEFINE_PROPERTY_GETTER | ( |  | name,
|  |  | strname,
|  |  | type,
|  |  | conversion
| ) |  |

Value:
type OpenvpnConnection::name() const\
{\
return d->m_propertyCache->get(strname).conversion();\
}\

## ◆ DEFINE_PROPERTY_GETTER_ENUM

#define DEFINE_PROPERTY_GETTER_ENUM | ( |  | name,
|  |  | strname,
|  |  | type
| ) |  |

Value:
OpenvpnConnection::type OpenvpnConnection::name() const\
{\
return static_cast<type>(d->m_propertyCache->get(strname).toInt());\
}

## ◆ DEFINE_PROPERTY_SETTER

#define DEFINE_PROPERTY_SETTER | ( |  | uppername,
|  |  | strname,
|  |  | type
| ) |  |

Value:
void OpenvpnConnection::set##uppername(type value)\
{\
d->m_propertyCache->set(strname, value);\
}

## ◆ DEFINE_PROPERTY_SETTER_ENUM

#define DEFINE_PROPERTY_SETTER_ENUM | ( |  | uppername,
|  |  | strname,
|  |  | type
| ) |  |

Value:
void OpenvpnConnection::set##uppername(type value)\
{\
d->m_propertyCache->set(strname, static_cast<int>(value));\
}

## ◆ DEFINE_PROPERTY_UPDATE

#define DEFINE_PROPERTY_UPDATE | ( |  | varname,
|  |  | strname,
|  |  | conversion
| ) |  |

Value:
else if (name == strname)\
{\
Q_EMIT p.varname##Changed(value.conversion());\
}

## ◆ DEFINE_PROPERTY_UPDATE_ENUM

#define DEFINE_PROPERTY_UPDATE_ENUM | ( |  | varname,
|  |  | strname,
|  |  | type
| ) |  |

Value:
else if (name == strname)\
{\
Q_EMIT p.varname##Changed(static_cast<type>(value.toInt()));\
}
set
set(CONNECTIVITY_QT_INCLUDE_DIR "${CMAKE_INSTALL_FULL_INCLUDEDIR}/connectivity-api/qt${CONNECTIVITY_QT_VERSION_MAJOR}") install(DIRECTORY "ubuntu" "connectivityqt" DESTINATION "$
Definition: CMakeLists.txt:2