summaryrefslogtreecommitdiffstats
path: root/network/connectionprofile.cpp
blob: 6fec374ecd677c6dbb5603460c0d5fb6cc82acf2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
#include "connectionprofile.h"

ConnectionProfile::ConnectionProfile(const QString &address,
                                     const QString &security,
                                     const QString &service,
                                     const QString &state,
                                     const QString &ssid,
                                     const int &strength,
                                     const QString &netmask,
                                     const QString &gateway,
                                     const QString &amethod,
                                     const QString &ns,
                                     const QString &nsmethod)
    : m_address(address), m_security(security), m_service(service),
      m_state(state), m_ssid(ssid), m_strength(strength), m_netmask(netmask),
      m_gateway(gateway), m_addrmethod(amethod), m_nameservers(ns),
      m_nsmethod(nsmethod)
{
}

QString ConnectionProfile::address() const
{
    return m_address;
}

QString ConnectionProfile::security() const
{
    return m_security;
}

QString ConnectionProfile::service() const
{
    return m_service;
}

QString ConnectionProfile::state() const
{
    return m_state;
}

QString ConnectionProfile::ssid() const
{
    return m_ssid;
}

int ConnectionProfile::strength() const
{
    return m_strength;
}

QString ConnectionProfile::netmask() const
{
    return m_netmask;
}

QString ConnectionProfile::gateway() const
{
    return m_gateway;
}

QString ConnectionProfile::nameservers() const
{
    return m_nameservers;
}

QString ConnectionProfile::addrmethod() const
{
    return m_addrmethod;
}

QString ConnectionProfile::nsmethod() const
{
    return m_nsmethod;
}

void ConnectionProfile::setAddress(const QString address)
{
    m_address = address;
}

void ConnectionProfile::setState(const QString state)
{
    m_state = state;
}

void ConnectionProfile::setStrength(const int strength)
{
    m_strength = strength;
}

void ConnectionProfile::setNetmask(const QString netmask)
{
    m_netmask = netmask;
}

void ConnectionProfile::setGateway(const QString gateway)
{
    m_gateway = gateway;
}

void ConnectionProfile::setNameservers(const QString nameservers)
{
    m_nameservers = nameservers;
}

void ConnectionProfile::setAddrMethod(const QString method)
{
    m_addrmethod = method;
}

void ConnectionProfile::setNSMethod(const QString method)
{
    m_nsmethod = method;
}
n class="s">STRING "Compilation flags") #set(C_COMPILE_OPTIONS "" CACHE STRING "Compilation flags for C language.") set(CXX_COMPILE_OPTIONS -pthread CACHE STRING "Compilation flags for C++ language.") #set(PROFILING_COMPILE_OPTIONS # -g # -O0 # -pg # -Wp,-U_FORTIFY_SOURCE # CACHE STRING "Compilation flags for PROFILING build type.") #set(DEBUG_COMPILE_OPTIONS # -Og # -g # -ggdb # -D_FORTIFY_SOURCE=2 # CACHE STRING "Compilation flags for DEBUG build type.") #set(COVERAGE_COMPILE_OPTIONS # -g # -O2 # --coverage # CACHE STRING "Compilation flags for COVERAGE build type.") #set(RELEASE_COMPILE_OPTIONS # -O2 # -D_FORTIFY_SOURCE=2 # CACHE STRING "Compilation flags for RELEASE build type.") add_definitions(-DAFB_BINDING_VERSION=2) # Optional location for config.xml.in # ----------------------------------- #set(WIDGET_ICON "\"${CMAKE_SOURCE_DIR}conf.d/wgt/${PROJECT_ICON}\"" CACHE PATH "Path to the widget icon") set(WIDGET_CONFIG_TEMPLATE "${CMAKE_SOURCE_DIR}/conf.d/wgt/config.xml.in" CACHE PATH "Path to widget config file template (config.xml.in)") # Mandatory widget Mimetype specification of the main unit # -------------------------------------------------------------------------- # Choose between : #- text/html : HTML application, # content.src designates the home page of the application # #- application/vnd.agl.native : AGL compatible native, # content.src designates the relative path of the binary. # # - application/vnd.agl.service: AGL service, content.src is not used. # #- ***application/x-executable***: Native application, # content.src designates the relative path of the binary. # For such application, only security setup is made. # set(WIDGET_TYPE application/vnd.agl.service) # Mandatory Widget entry point file of the main unit # -------------------------------------------------------------- # This is the file that will be executed, loaded, # at launch time by the application framework. # set(WIDGET_ENTRY_POINT lib/afb-low-can.so) # Optional dependencies order # --------------------------- #set(EXTRA_DEPENDENCIES_ORDER) # Optional Extra global include path # ----------------------------------- #set(EXTRA_INCLUDE_DIRS) # Optional extra libraries # ------------------------- #set(EXTRA_LINK_LIBRARIES) # Optional force binding Linking flag # ------------------------------------ # set(BINDINGS_LINK_FLAG LinkOptions ) # Optional force package prefix generation, like widget # ----------------------------------------------------- # set(PKG_PREFIX DestinationPath) # Optional Application Framework security token # and port use for remote debugging. #------------------------------------------------------------ set(AFB_TOKEN "" CACHE STRING "Default binder security token") set(AFB_REMPORT "1234" CACHE STRING "Default binder listening port") # Print a helper message when every thing is finished # ---------------------------------------------------- set(CLOSING_MESSAGE "Typical binding launch: afb-daemon --port=${AFB_REMPORT} --workdir=${CMAKE_BINARY_DIR}/package --ldpaths=lib --roothttp=htdocs --token=\"${AFB_TOKEN}\" --tracereq=common --verbose") set(PACKAGE_MESSAGE "Install widget file using in the target : afm-util install ${PROJECT_NAME}.wgt") # Optional schema validator about now only XML, LUA and JSON # are supported #------------------------------------------------------------ #set(LUA_CHECKER "luac" "-p" CACHE STRING "LUA compiler") #set(XML_CHECKER "xmllint" CACHE STRING "XML linter") #set(JSON_CHECKER "json_verify" CACHE STRING "JSON linter") # This include is mandatory and MUST happens at the end # of this file, else you expose you to unexpected behavior # ----------------------------------------------------------- include(${PROJECT_APP_TEMPLATES_DIR}/cmake/common.cmake)