2011/10/25 Milian Wolff <m...@milianw.de>: > On Monday 24 October 2011 13:52:09 Steven Sroka wrote: >> Can there be a constructor in a KAuth helper? >> In the techbase examples, the helper is access like this: >> >> KAuth::ActionReply reply = readAction.execute(); >> >> Would the readAction constructor be called internally then the >> execute() function would be run, or does this bypass the constructor >> and immediately run the execute() function? >> >> Can't do basic programming....feeling braindead. > > You should learn the basics before trying to program.
I would also add, it's quite important knowing AT LEAST the basics when dealing with components which are providing superuser privileges. I would suggest you to read some books about C++ and programming before trying to deal with KAuth. > But well, looking at > existing code is one of the good and fast ways to learn it, so here you go: > > readAction is an object and as such initialized (i.e. the constructor was > called). Look at the code where you got this example from, somewhere there > should be a > > SomeType readAction = ... > > or similar, which triggers a call to one of the constructors. > > bye > -- > Milian Wolff > m...@milianw.de > http://milianw.de > >>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe << > >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<