Hi David,

Le 14 sept. 07 à 01:04, David Chisnall a écrit :

> Author: theraven
> Date: Fri Sep 14 01:04:05 2007
> New Revision: 2451
>
> URL: http://svn.gna.org/viewcvs/etoile?rev=2451&view=rev
> Log:
> Added support for reading battery level in ETMachineInfo
>
>
> Modified:
>     trunk/Etoile/Services/Private/MenuServer/Subprojects/ 
> AboutEtoileEntry/ETMachineInfo.h
>     trunk/Etoile/Services/Private/MenuServer/Subprojects/ 
> AboutEtoileEntry/ETMachineInfo.m
>     trunk/Etoile/Services/Private/MenuServer/Subprojects/ 
> AboutEtoileEntry/ETMachineInfo_FreeBSD.m

I think Power Management related features should go into SystemConfig  
framework. In my opinion, ETMachineInfo should be reserved for basic  
hardware and host system infos (stuff that don't change unless you  
make major modifications to your hardware or installed host system  
and then needs a reboot). We should probably have a config element  
called SCPowerManagement or something like that.
SystemConfig framework has been created  to offer a common  
abstraction layer over host system and hardware. The framework  
doesn't include a daemon yet, but should for the following reasons:
- hardware and host system monitoring
- admin privileges
- concurrency issues if several applications try to modify an  
identical setting at the same time
For example the last two reasons are important when a configuration  
file must be edited.

About ETMachineInfo, I plan to move it to EtoileFoundation. It would  
provide applications with a simple way to know about the platform  
they are currently running on (useful if they want to add hardware or  
system dependent optimizations). SystemConfig is probably needed only  
by Étoilé private applications and tools. On configuration changes  
(triggered by the user or coming from the host system) SystemConfig  
can post a distributed notification that any applications can catch.  
Applications may observe such notification to be aware of monitor  
resolution change, network interface change etc.) so I think in most   
cases SystemConfig won't have to be link by any user applications.  
That's why it makes sense to keep ETMachineInfo outside of  
SystemConfig in my opinion.

Cheers,
Quentin.

--
Quentin Mathé
[EMAIL PROTECTED]


_______________________________________________
Etoile-dev mailing list
[email protected]
https://mail.gna.org/listinfo/etoile-dev

Reply via email to