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

List:       kde-panel-devel
Subject:    Re: [Panel-devel] Facebook Plasma Engine and applet
From:       Will Stephenson <wstephenson () kde ! org>
Date:       2007-06-20 19:54:40
Message-ID: 200706202154.40929.wstephenson () kde ! org
[Download RAW message or body]

On Wednesday 20 June 2007 13:01:12 Robert Knight wrote:
> > They admit that Even a closed source app
> > not really protect the key, but they are having some internal discussion
> > about how to proceed, so I don't really want to jump the gun.
>
> Okay, seems fair enough.  We have time for them to discuss.
>
> Thanks for the fix, I was able to start the applet successfully.  A
> couple of problems remain:
>
> - It asks for me to login each time the applet is used ( I am checking
> the 'Save my login' button )

I know - saving the session key and reusing it isn't implemented yet.

> - There seems to be a maximum time between opening the browser and a
> successful login.  The first time I tried I took too long and
> authentication failed.

QTimer::singleShot( 20000, ...

This is why I need a way to communicate with the engine to tell it when it can 
proceed with the session setup.  Someone on IRC suggested casting the 
DataEngine * returned by dataEngine to FacebookEngine and calling some extra 
methods there, but this is no good because it introduces tight coupling, 
which would require linking the applet vs its engine, and casts across 
dlloaded libraries are dodgy anyway.

Writing this email has inspired me to use QMetaObject::invokeMethod(), still a 
hack though.

Will
_______________________________________________
Panel-devel mailing list
Panel-devel@kde.org
https://mail.kde.org/mailman/listinfo/panel-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

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