Revision 5b19e36...

Go back to digest for 16th December 2012

Features in Utilities

Alex Fiestas committed changes in [kscreen/kded] /:

Implemented almost all Serializer, ATM using static methods

Serialzier is the class that will store/restore settings from the
connected outputs.

The class is static right now since atm I don't have a clear case of why
it shouldn't be, but anyway it may change in the future.

Serializer::currentId:
Generates an id that will be used to either store or restore settings.
It basically identifies a set of connected outputs using the hash of
their entire edid. In the future we may change this to use another less
volatile data as id (edid hash may change if the monitor firmware is
updated).

Serializer::configExists:
Check if a config file exists for this set of monitor (currentId)

Serializer::config(const QString &id)
Returns a config for the passed id, opening the file where the json
is stored and merging it to the current config.

Serializer::saveConfig(KScreen::config *)
Gets a Config objects and save into a json file all the connected
devices, indicating the edid hash, currentMode, position and if they
are primary output.

We are NOT storing in which port the devices are connected, the idea
is that we won't care if you plug your TV in the HDMI or in the VGA
port.

File Changes

Modified 4 files
  •   CMakeLists.txt
  •   kded/CMakeLists.txt
  •   kded/serializer.cpp
  •   kded/serializer.h
4 files changed in total