[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: KAuth
From:       Dario Freddi <drf54321 () gmail ! com>
Date:       2011-10-29 12:48:20
Message-ID: CAFFVnfP9BwjL2dQn09eiHJyPpKnYxm7ngH0p1Afom-MEy5w77g () mail ! gmail ! com
[Download RAW message or body]

2011/10/25 Milian Wolff <mail@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
> mail@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 <<
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic