Code Monkey home page Code Monkey logo

qt_practicum's Introduction

qt_practicum

Qt independent studies course The main Project in this repo is in the kcm_ufw folder

KCM-UFW

Dependencies

The following command should pull in all the dependencies you need on a Ubuntu/Debian system to build anything in this repo: sudo apt-get install libkf5widgetsaddons-dev libkf5kcmutils-dev kio-dev libkf5i18n-dev qtbase5-dev libkf5auth-dev libkf5configwidgets-dev libkf5coreaddons-dev cmake-extras extra-cmake-modules

Building kcm-ufw

To build the main kcm-ufw project, open a command prompt and type: sudo cmake CMakeLists.txt -DKDE_INSTALL_USE_QT_SYS_PATHS=ON -DCMAKE_INSTALL_PREFIX:PATH=/usr sudo make install

Then type: kbuildsycoca5

qt_practicum's People

Contributors

shsorbom avatar hsitter avatar yurchor avatar amalvarenga avatar lliehu avatar

Watchers

 avatar James Cloos avatar  avatar

qt_practicum's Issues

kauth function call error

/home/shawn/Projects/qt_practicum/kcm_ufw/helper/helper.cpp: In member function ‘KAuth::ActionReply UFW::Helper::viewlog(const QVariantMap&)’:
/home/shawn/Projects/qt_practicum/kcm_ufw/helper/helper.cpp:121:14: error: invalid user-defined conversion from ‘const KAuth::ActionReply()’ to ‘const KAuth::ActionReply&’ [-fpermissive]
reply=ActionReply::HelperErrorReply;
^
In file included from /usr/include/KF5/KAuth/kauth.h:25:0,
from /home/shawn/Projects/qt_practicum/kcm_ufw/helper/helper.h:29,
from /home/shawn/Projects/qt_practicum/kcm_ufw/helper/helper.cpp:24:
/usr/include/KF5/KAuth/kauthactionreply.h:572:5: note: candidate is: KAuth::ActionReply::ActionReply(int)
ActionReply(int errorCode);
^
/usr/include/KF5/KAuth/kauthactionreply.h:572:5: note: no known conversion for argument 1 from ‘const KAuth::ActionReply()’ to ‘int’
/home/shawn/Projects/qt_practicum/kcm_ufw/helper/helper.cpp:121:14: error: invalid conversion from ‘const KAuth::ActionReply ()()’ to ‘int’ [-fpermissive]
reply=ActionReply::HelperErrorReply;
^
In file included from /usr/include/KF5/KAuth/kauth.h:25:0,
from /home/shawn/Projects/qt_practicum/kcm_ufw/helper/helper.h:29,
from /home/shawn/Projects/qt_practicum/kcm_ufw/helper/helper.cpp:24:
/usr/include/KF5/KAuth/kauthactionreply.h:572:5: note: initializing argument 1 of ‘KAuth::ActionReply::ActionReply(int)’
ActionReply(int errorCode);
^
/home/shawn/Projects/qt_practicum/kcm_ufw/helper/helper.cpp:122:51: error: no matching function for call to ‘KAuth::ActionReply::setErrorCode(UFW::Helper::Status)’
reply.setErrorCode(STATUS_OPERATION_FAILED);
^
/home/shawn/Projects/qt_practicum/kcm_ufw/helper/helper.cpp:122:51: note: candidate is:
In file included from /usr/include/KF5/KAuth/kauth.h:25:0,
from /home/shawn/Projects/qt_practicum/kcm_ufw/helper/helper.h:29,
from /home/shawn/Projects/qt_practicum/kcm_ufw/helper/helper.cpp:24:
/usr/include/KF5/KAuth/kauthactionreply.h:664:10: note: void KAuth::ActionReply::setErrorCode(KAuth::ActionReply::Error)
void setErrorCode(Error errorCode);
^
/usr/include/KF5/KAuth/kauthactionreply.h:664:10: note: no known conversion for argument 1 from ‘UFW::Helper::Status’ to ‘KAuth::ActionReply::Error’
/home/shawn/Projects/qt_practicum/kcm_ufw/helper/helper.cpp: In member function ‘KAuth::ActionReply UFW::Helper::modify(const QVariantMap&)’:
/home/shawn/Projects/qt_practicum/kcm_ufw/helper/helper.cpp:161:36: error: invalid conversion from ‘const KAuth::ActionReply (
)()’ to ‘int’ [-fpermissive]
ActionReply reply=ActionReply::HelperErrorReply;
^
In file included from /usr/include/KF5/KAuth/kauth.h:25:0,
from /home/shawn/Projects/qt_practicum/kcm_ufw/helper/helper.h:29,
from /home/shawn/Projects/qt_practicum/kcm_ufw/helper/helper.cpp:24:
/usr/include/KF5/KAuth/kauthactionreply.h:572:5: note: initializing argument 1 of ‘KAuth::ActionReply::ActionReply(int)’
ActionReply(int errorCode);
^
/home/shawn/Projects/qt_practicum/kcm_ufw/helper/helper.cpp:162:42: error: no matching function for call to ‘KAuth::ActionReply::setErrorCode(UFW::Helper::Status)’
reply.setErrorCode(STATUS_INVALID_CMD);
^
/home/shawn/Projects/qt_practicum/kcm_ufw/helper/helper.cpp:162:42: note: candidate is:
In file included from /usr/include/KF5/KAuth/kauth.h:25:0,
from /home/shawn/Projects/qt_practicum/kcm_ufw/helper/helper.h:29,
from /home/shawn/Projects/qt_practicum/kcm_ufw/helper/helper.cpp:24:
/usr/include/KF5/KAuth/kauthactionreply.h:664:10: note: void KAuth::ActionReply::setErrorCode(KAuth::ActionReply::Error)
void setErrorCode(Error errorCode);
^
/usr/include/KF5/KAuth/kauthactionreply.h:664:10: note: no known conversion for argument 1 from ‘UFW::Helper::Status’ to ‘KAuth::ActionReply::Error’
/home/shawn/Projects/qt_practicum/kcm_ufw/helper/helper.cpp: In member function ‘KAuth::ActionReply UFW::Helper::setProfile(const QVariantMap&, const QString&)’:
/home/shawn/Projects/qt_practicum/kcm_ufw/helper/helper.cpp:209:40: error: invalid conversion from ‘const KAuth::ActionReply (*)()’ to ‘int’ [-fpermissive]
ActionReply reply=ActionReply::HelperErrorReply;
^
In file included from /usr/include/KF5/KAuth/kauth.h:25:0,
from /home/shawn/Projects/qt_practicum/kcm_ufw/helper/helper.h:29,
from /home/shawn/Projects/qt_practicum/kcm_ufw/helper/helper.cpp:24:
/usr/include/KF5/KAuth/kauthactionreply.h:572:5: note: initializing argument 1 of ‘KAuth::ActionReply::ActionReply(int)’
ActionReply(int errorCode);
^

C++11 errors

These three errors appear to be related:
/home/shawn/Projects/qt_practicum/kcm_ufw/helper/helper.cpp:76:61: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
QStringList profiles=dir.entryList(QStringList() << ""PROFILE_EXTENSION);
^
/home/shawn/Projects/qt_practicum/kcm_ufw/helper/helper.cpp:255:76: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
reply.addData("profiles", QDir(KCM_UFW_DIR).entryList(QStringList() << "
"PROFILE_EXTENSION));
^
/home/shawn/Projects/qt_practicum/kcm_ufw/helper/helper.cpp:279:76: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
reply.addData("profiles", QDir(KCM_UFW_DIR).entryList(QStringList() << "*"PROFILE_EXTENSION));
^

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.