[Kde-hardware-devel] I offer my help (powermanager with HAL backend)
Martin (KaFai), Lau
iamkafai2002 at yahoo.com
Tue Jun 27 07:23:05 CEST 2006
I screen through the solid svn tree. I think I have a rough idea... I am probably wrong in many of them though ^_^
Having said that, I am still dare to put up my little idea, ask for correction and learn from the mistakes before jumping off the cliff. Here is my idea on powermanger with HAL backend
#ifndef HALPOWERMANAGER_H
#define HALPOWERMANAGER_H
#include <kdemacros.h>
#include <solid/ifaces/powermanager.h>
class HalPowerManagerPrivate;
class KDE_EXPORT HalPowerManager : virtual public Solid::Ifaces::PowerManager
{
Q_OBJECT
public:
/**
* Constructs a PowerManager
*/
HalPowerManager( QObject *parent = NULL );
virtual ~HalPowerManager();
//others pure virtual functions from Solid::Ifaces::PowerManager
private:
HalPowerManagerPrivate *d;
};
#endif
#include "haldevice.h"
#include "battery.h"
#include "acadapter.h"
#include "halcalljob.h"
#include "halpowermanager.h"
//The question is....does this class make sense?
class HalPowerManagerPrivate
{
public:
HalPowerManagerPrivate();
~HalPowerManagerPrivate();
HalDevice *m_computer; // Suspend, Shutdown, SetPowerSave...etc
Battery *m_battery; //battery state
AcAdapter *m_ac; //ac adapter state
};
Regards,
--Martin
----- Original Message ----
From: "Martin (KaFai), Lau" <iamkafai2002 at yahoo.com>
To: ervin at kde.org; kde-hardware-devel at kde.org
Sent: Friday, June 2, 2006 10:27:13 AM
Subject: Re: [Kde-hardware-devel] I offer my help
--- Kevin Ottens <ervin at kde.org> wrote:
> Le Mardi 30 Mai 2006 01:30, Martin (KaFai), Lau a �crit :
> > Hi All,
>
> Hi,
>
> > My name is Martin and I am a C++ developer. I can offer my help as a
> > developer to the solid project. core dev, unit test, app dev...etc.
>
> Welcome on board!
> Just curious do you have any prior experience with Qt (3 or 4) or kdelibs?
I have some QT but not kdelibs. I will pickup.
> - Power management
> At the moment I committed a powersaved based backend for this, but I'd like
> to
> have also a HAL based one, so you could work on this if you want.
I will start to work on the HAL based backend first
Regards,
Martin
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
_______________________________________________
Kde-hardware-devel mailing list
Kde-hardware-devel at kde.org
https://mail.kde.org/mailman/listinfo/kde-hardware-devel
More information about the Kde-hardware-devel
mailing list