GNOME · GNOME Hispano · Planeta GNOME Hispano · Planet GNOME · Freedesktop · LINUPS · GSyC · LibreSoft

Wed, 22 Dec 2004

A new CPUFreq Applet
14:07

Yes, I've just rewritten the cpufreq applet. There were some things that I wanted for the applet and I hadn't done yet because it was necessary to change the current code design.

Some of them are:

I think that the advantages are evident . . .

I thought that the best way to do these things, it was an object oriented design. The monitor is an abstract class (CPUFreqMonitor) that has a child class for every possible monitor (CPUFreqMonitorProcs, CPUFreqMonitorSysfs, . . .). The applet only knows the CPUFreqMonitor class, so the methods for getting the data are virtual methods, polymorphic entities. In this way, we can add new monitors in the future (based on libcpufreq, HAL or whatever) by only writing a new class and without changing any line of code in the applet. We can even decide which monitor will be used at run time.

CPUFreq Applet UML
CPUFreq Applet new code design in UML

We have now an applet more efficient and extensible.

While I rewrote the code I also migrated from gnome_about to gtk_about and I did some code cleanups.

I haven't committed yet, because I want to test it a little more. I think I will commit with the new icons, since nobody has said anything bad of them.

Category:

Sections
   Main (blog)
   Photo Gallery
   Contact
   PGP Key

Calendar
< December 2004 >
SuMoTuWeThFrSa
    1 2 3 4
5 6 7 8 91011
12131415161718
19202122232425
262728293031 

Archives
   Jul 2010
   Jun 2010
   Feb 2010
   Sep 2009
   May 2009
   Feb 2009
   Jan 2009
   May 2008
   Mar 2008
   Dec 2007
   Nov 2007
   Oct 2007
   Sep 2007
   May 2007
   Apr 2007
   Feb 2007
   Jan 2007
   Dec 2006
   Oct 2006
   Sep 2006
   Jun 2006
   Apr 2006
   Mar 2006
   Feb 2006
   Jan 2006
   Dec 2005
   Nov 2005
   Oct 2005
   Sep 2005
   Jul 2005
   Jun 2005
   May 2005
   Apr 2005
   Mar 2005
   Feb 2005
   Jan 2005
   Dec 2004
   Nov 2004
   Oct 2004
   Sep 2004
   Aug 2004
   Jul 2004
   Jun 2004
   May 2004

Friends
   Alvaro del Castillo (acs)
   Alvaro Lopez Ortega (alo)
   Alvaro Peña (apg)
   Arturo Gonzalez (arturogf)
   Ayose Cazorla (setepo)
   Carlos Garnacho
   Carlos Miguelañez (Tuxer)
   Carlos Perelló
   Cesar Alvarez (webbo)
   Eduardo García (kiwnix)
   Esteban Sanchez (steve-o)
   Fernando Herrera (fer)
   German Poo (gpoo)
   Gillermo (daimon)
   Javier Gonzalez (^IcE-bOy^)
   JoAkKiNeN
   Jordi Mallach
   JuanJo Amor
   Juan Pablo Zafra
   Lorenzo Gil Sanchez (lgs)
   Pablo Arroyo (zioma)
   Rodrigo Moya
   Sergio (muttley)
   zordor


rss
Powered by Pyblosxom
Powered by Pyblosxom
Rock is Roll