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

List:       kopete-devel
Subject:    Re: [kopete-devel] Interception of authorization
From:       "Roman Jarosz" <kedgedev () centrum ! cz>
Date:       2008-07-04 14:36:58
Message-ID: op.udruvwa1yuholc () kedge
[Download RAW message or body]

Actually in KDE 4.1 it is an event. All protocols create AddedInfoEvent
when authorization is requested or someone adds you to contact list and
this event is send to InfoEventManager. InfoEventManager emits signal
eventAdded( Kopete::InfoEvent* event ) when new event was received.

So you can catch an event with eventAdded and delete it. There's probably just
on problem that InfoEventWidget will show KNotification but it's easy to fix
we could just add flag to event which will tell that the event should be ignored.

Roman

On Fri, 04 Jul 2008 03:03:08 +0200, Matt Rogers <mattr@kde.org> wrote:

> On Thursday 03 July 2008 10:03:19 Alexey Noskov wrote:
>> Hello!
>>
>> I develop antispam plugin for kopete
>> (http://kopeteantispam.sourceforge.net) and i need to add protection
>> against spam in authorization requests.
>>
>> Is there any way to intercept this event in kopete?
>>
>
> No, because it's not handled with any sort of an event. That might be a  
> nice
> patch to Kopete that you could submit though. Because then if an  
> authorization
> request is a notifcation event globally, then you could intercept it for  
> all
> protocols and the next question doesn't even matter then because you  
> won't
> need api and headers for the icq module
>
>> And where i can find api and headers of ICQ module?
>>
>
> You can't. There are no public APIs or headers for the ICQ module.
> --
> Matt
_______________________________________________
kopete-devel mailing list
kopete-devel@kde.org
https://mail.kde.org/mailman/listinfo/kopete-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

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