Sunday, June 24, 2007

Query 1, meet Query 2

Today I'm going to:
  • scope around some XML parsing code in other KDE/Qt projects
  • start an implementation (if above is successful)
  • refactor my existing code (to be found at branches/work/soc-kdeprint-openprinting) to use the two step query process*
Said goodbye to the lady off to America and everyone who's going is gone too now. No excuses - more KDE time


Cristian Tibirna said...

It's a good idea to look for reusable code for XML parsing. I think KDE4 tends to use Qt's tools.

Care to explain the "two step query process"?

(The posting problem seemed to be a bad cookie config in my konqueror. I still don't understand why firefox didn't function either)

Gavin Beatty said...

Yes, I shall be using QtXml module most likely with the SAX2 style variant being the most likely.

2 step process: When querying, there are 3 types of information we can retrieve (using the type argument/option):
* manufacturer (I likely won't use this)
* printer
* driver

So, in order to find and download a specific driver for a specific printer, there necessitates 2 queries.

The first query gets information from machine (and perhaps the user) about the printer type. This will also give lots of information about drivers available for the printer (there could even be a list of many recent, functional drivers that could all "work").

The second query will use this driver list (so we need the first query's XML parsed before we can make the second) and make a driver query. Here we can get information about the driver such as the all important download URL.

Glad posting now works! ;)

Anonymous said...

The story is about a very small (wow gold)because the (wow gold)reasons for the (wow gold) expulsion Chushi doors have been forced to(wow power leveling) living on the United Kingdom, (wow power leveling)in abroad alone the people(wow power leveling) struggling for survival. A naturally do not (wow power leveling) agree with the ethical person. A war many of the cracks in the middle of the(wow gold) pursuit of hard power of (World of Warcraft gold) extreme people. A look at(wow power leveling) the friendship will be more important than the lives of people. The best of life, the best of the best stories or Long Road. Like Xiuzhen's friends must-see (Rolex)category.