Review Request: KMemoryInfo: system memory query

Pino Toscano pino at kde.org
Sat Jan 9 23:18:47 GMT 2010


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://reviewboard.kde.org/r/2536/
-----------------------------------------------------------

Review request for kdelibs.


Summary
-------

KMemoryInfo is a small class used to query the OS requesting the memory (RAM) information available.
It is possible to selectively choose which information request.
The implementations provided so far are for Linux and Windows; more OSes can easily be added later.
The (so far small) unit test should help assuring the implementation for the current OS is sane.

Possible users interested by this: okular and gwenview (which currently have basically the same code), and maybe ksysguard/processcore, superkaramba, kio_sysinfo, and kinfocenter (once KMemoryInfo reaches the number of OS implementation kinfocenter has).


Diffs
-----

  /trunk/KDE/kdelibs/kdecore/CMakeLists.txt 1072277 
  /trunk/KDE/kdelibs/kdecore/tests/CMakeLists.txt 1072277 
  /trunk/KDE/kdelibs/kdecore/tests/kmemoryinfotest.cpp PRE-CREATION 
  /trunk/KDE/kdelibs/kdecore/util/kmemoryinfo.h PRE-CREATION 
  /trunk/KDE/kdelibs/kdecore/util/kmemoryinfo.cpp PRE-CREATION 
  /trunk/KDE/kdelibs/kdecore/util/kmemoryinfo_linux.cpp PRE-CREATION 
  /trunk/KDE/kdelibs/kdecore/util/kmemoryinfo_win.cpp PRE-CREATION 

Diff: http://reviewboard.kde.org/r/2536/diff


Testing
-------

The small unit test pass, an example application as well.


Thanks,

Pino





More information about the kde-core-devel mailing list