Allright, i wrote this in my former Posting but anda_skoa didn't understand my question and locked the thread.
I've got a small problem with kopete. Everytime I lock the kde session it sets me away (which is fine) but any false mouse movement (which can occur frequently with an optical mouse) sets me online again. I want my online status to be away if and only if the session is locked. I allready made some modifications in the source code but found no way to check wether the session is looked or not. Could somebody please help me?
So this is definately a devellopment question. I want to know how a kde based program like kopete is able to check wether the current kde session is locked or not.
So I'm asking for something like this:
if (ksessioninfo->currentsession()!=LOCKED) {/* allow changing status back online*/}
But I'm sure it's not that simple.