mirror of
https://bitbucket.org/smil3y/kde-playground.git
synced 2025-02-23 10:22:50 +00:00
kfirewall: build fix
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
3ef1e6cc9e
commit
ce37613433
5 changed files with 14 additions and 6 deletions
|
@ -3,8 +3,8 @@ project(kfirewall)
|
||||||
if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR})
|
if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR})
|
||||||
include(FeatureSummary)
|
include(FeatureSummary)
|
||||||
|
|
||||||
find_package(KDE4 4.21.0 REQUIRED)
|
find_package(KDELibs4 4.21.0 REQUIRED)
|
||||||
include(KDE4Defaults)
|
|
||||||
include_directories(${KDE4_INCLUDES})
|
include_directories(${KDE4_INCLUDES})
|
||||||
add_definitions(${QT_DEFINITIONS} ${KDE4_DEFINITIONS})
|
add_definitions(${QT_DEFINITIONS} ${KDE4_DEFINITIONS})
|
||||||
endif()
|
endif()
|
||||||
|
|
|
@ -8,8 +8,8 @@ set(kfirewallconfig_SRCS
|
||||||
kde4_add_plugin(kcm_kfirewallconfig ${kfirewallconfig_SRCS})
|
kde4_add_plugin(kcm_kfirewallconfig ${kfirewallconfig_SRCS})
|
||||||
|
|
||||||
target_link_libraries(kcm_kfirewallconfig
|
target_link_libraries(kcm_kfirewallconfig
|
||||||
${KDE4_KDEUI_LIBS}
|
KDE4::kdeui
|
||||||
${KDE4_KCMUTILS_LIBS}
|
KDE4::kcmutils
|
||||||
)
|
)
|
||||||
|
|
||||||
install(
|
install(
|
||||||
|
@ -26,7 +26,7 @@ install(
|
||||||
|
|
||||||
add_executable(kcmkfirewallhelper kfirewallhelper.cpp)
|
add_executable(kcmkfirewallhelper kfirewallhelper.cpp)
|
||||||
target_link_libraries(kcmkfirewallhelper
|
target_link_libraries(kcmkfirewallhelper
|
||||||
${KDE4_KDECORE_LIBS}
|
KDE4::kdecore
|
||||||
)
|
)
|
||||||
|
|
||||||
install(
|
install(
|
||||||
|
|
|
@ -128,6 +128,12 @@ static int applyRules(KFirewallHelper *helper, const QString &iptablesexe,
|
||||||
return KAuthorization::NoError;
|
return KAuthorization::NoError;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
KFirewallHelper::KFirewallHelper(const char* const helper, QObject *parent)
|
||||||
|
: KAuthorization(helper, parent)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
int KFirewallHelper::apply(const QVariantMap ¶meters)
|
int KFirewallHelper::apply(const QVariantMap ¶meters)
|
||||||
{
|
{
|
||||||
if (parameters.isEmpty()) {
|
if (parameters.isEmpty()) {
|
||||||
|
|
|
@ -24,6 +24,8 @@
|
||||||
class KFirewallHelper : public KAuthorization
|
class KFirewallHelper : public KAuthorization
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
public:
|
||||||
|
KFirewallHelper(const char* const helper, QObject *parent);
|
||||||
public slots:
|
public slots:
|
||||||
int apply(const QVariantMap ¶meters);
|
int apply(const QVariantMap ¶meters);
|
||||||
int revert(const QVariantMap ¶meters);
|
int revert(const QVariantMap ¶meters);
|
||||||
|
|
|
@ -9,7 +9,7 @@ qt4_generate_dbus_interface(kded_kfirewall.h org.kde.kfirewall.xml )
|
||||||
|
|
||||||
kde4_add_plugin(kded_kfirewall ${kded_kfirewall_SRCS})
|
kde4_add_plugin(kded_kfirewall ${kded_kfirewall_SRCS})
|
||||||
target_link_libraries(kded_kfirewall PRIVATE
|
target_link_libraries(kded_kfirewall PRIVATE
|
||||||
${KDE4_KDECORE_LIBS}
|
KDE4::kdecore
|
||||||
)
|
)
|
||||||
|
|
||||||
install(
|
install(
|
||||||
|
|
Loading…
Add table
Reference in a new issue