/srv/irclogs.ubuntu.com/2010/05/15/#kubuntu-devel.txt

PyObjectPtrnixternal: before that were 50 or so commits in a branch :P01:10
* PyObjectPtr also did another 30 since then in another branch01:10
* PyObjectPtr is implementing the u1 api01:10
* PyObjectPtr didnt even know u1 had an api until a few hours ago ^^01:10
nixternalPyObjectPtr: quit changing your name01:26
=== PyObjectPtr is now known as static_name
static_namenixternal: happy now?01:27
=== AndChat- is now known as jjesse-droid
static_namehm01:29
static_nameseems my getQuota() is already working01:29
* static_name thinks a caching system would be nice to have with such an api01:30
=== static_name is now known as apachelogger
apacheloggerapachelogger->goTo(Bed);01:37
nixternalg'nite apachelogger 01:46
DarkwingDuckwhat's up gang?01:46
nixternalseeing how many canucks I can piss off  tonight02:04
nixternalhttp://www.cbc.ca/canada/montreal/story/2010/05/14/quebec-cycling-accident.html02:04
nixternalthat story combined with the comments prove they are just as stupid as they claim we are02:04
* JontheEchidna back home04:34
* JontheEchidna goes off to bed04:34
=== fale_ is now known as fale
apacheloggerJontheEchidna: yes and no, while one could upstream that patch in a more appropriate version (i.e. if(NOT MYSQLD_EXECUTABLE) find_program etc.) which of course is of no concern to debian, the patch tries to archive something different, it essentially eliminates the need to search for mysqld and thus makes the package not build-dep on mysqld08:45
apacheloggerhowever08:45
apacheloggerwe do not use mysqld but **COPY** it from the mysql-server package to akonadi as mysqld-akonadi08:46
apacheloggerand, since debian in all its glory hardcoded the name of the daemon we just override that using debian/rules08:46
apacheloggerotherwise we would have to patch the patch or change the patch which both are recepies for troubles and lost-in-merge-issues08:47
apacheloggerRiddell: around?09:45
apacheloggerInternal Server Error \o/10:07
* apachelogger broke u110:07
bulldog98Riddell: rekonq is translated10:11
bulldog98it’s in the kde extragear trunk for translation10:12
apacheloggerhttp://flavio.castelli.name/qjson-qobject-serialization-deserialization now that puts implementing a json api into a whole new perspective10:21
apacheloggerhm10:46
apacheloggerok, this is pretty cool10:46
apachelogger            Quota q;10:47
apachelogger            QJson::QObjectHelper::qvariant2qobject(data.toMap(), &q);10:47
apacheloggerkubotu: identica dent <3 !qjson - it is uberawesome10:47
kubotustatus updated10:47
Quintasan\o11:36
apacheloggerhttp://imagebin.ca/view/HM9fpP.html12:35
Quintasanapachelogger: fck yeah13:26
Quintasanbut I use dropbox :P13:26
apacheloggerholy shifting paradigm13:26
apachelogger!13:26
* apachelogger goes mad over implementing the api13:26
apachelogger/usr/include/qt4/QtCore/qobject.h: In member function ‘UbuntuOne::Api::SubscriptionObject& UbuntuOne::Api::SubscriptionObject::operator=(const UbuntuOne::Api::SubscriptionObject&)’: 13:31
apachelogger/usr/include/qt4/QtCore/qobject.h:309: error: ‘QObject& QObject::operator=(const QObject&)’ is private 13:31
* apachelogger is wondering why moc cant just use the copy constructor -.-13:32
Sputapachelogger: QObject prohibits copying13:39
apacheloggeryeah, but I am not feeling like implementing an assignment constructor and for some reason pointers do not work13:40
Sputapachelogger: well, I guess Qt has a reason for prohibiting copying... I think the whole object hierarchy thingy would end up in a burning mess if we started copying QObjects around13:40
Sputso fix the reason why pointers don't work for you instead :P13:41
apacheloggerqt is privativing = and copy ctor so that one does not end up with shallow copies by accident ;)13:42
apacheloggerther is some qjson magic I do not see, but probably it has to do with QVariants vs. custom type13:46
apacheloggerit appears as if the metacall for the variant in question never gets issued :(13:47
apacheloggerah!14:26
apacheloggerso14:26
apacheloggerthe way qjson applies a json object to a qobject14:26
Quintasanlooks like apachelogger rediscovered the wheel14:26
Quintasan:P14:26
apacheloggera) it converts the json object to a qvariant14:26
apacheloggerb) it runs through all of target_qobject's properties and tries to use setPropert() using the appropriate part of the qvariant14:27
apacheloggerproblem: setProperty's prototype is bool QObject::setProperty ( const char * name, const QVariant & value )14:27
apacheloggerthat means that above approach only works for data types supported by QVariant14:28
apacheloggerso the only approach to marshal an object within an object is to first marshal the parent, then marshal the child and then link them together14:29
apacheloggersuffice to say I already feel the headache on the run14:29
Sputapachelogger: QVariant can support any datatype14:40
Sputthat's what qRegisterMetatype is for14:40
Sputyou need to provide serializers for the type14:41
Sputhehe. the Federal Convention of the German Pirate Party is world trending topic in twitter. Take that, Mark! :)14:51
Sput*worldwide trending topic even14:52
apacheloggerSput: that sounds too evil for the mental condition I am in right now ;)15:10
apacheloggeranyhow15:13
apacheloggerohh15:14
* apachelogger will have to get a new brain if his sister continues to sing like that15:14
apacheloggeroh my, she cant even hold a note -.-15:15
Sputapachelogger: defining an operator>>() for QDataStream isn't hard :)15:17
* apachelogger is doing marshaling between qt and dbus datatypes, so he knows :P15:17
apachelogger"To use the type T in QVariant, using Q_DECLARE_METATYPE() is sufficient. "15:17
* apachelogger actually had done that15:18
apacheloggerwell, this defenitely needs some looking into15:18
apacheloggerbut for now, marshaling the json to the child-objects manually should be sufficient15:19
apacheloggerm_plan->setText(account.subscription()->description()); is so much better than m_plan->setText(account.subscription()["description"].toString());15:19
Sputapachelogger: hmm, quite sure that you also need the stream operators15:24
SputQ_DECLARE_METATYPE_STREAM_OPERATORS()15:24
Sputor something15:24
SputNote that if you intend to use the type in queued signal and slot connections or in QObject's property system, you also have to call qRegisterMetaType() since the names are resolved at runtime.15:25
Sputah, yeah, you need that obviously for the marshalling15:25
apachelogger*nod*15:25
Sputright, for queued signal/slots QVariant needs to do actual serialization15:25
Sputfor direct calls, it doesn't need to bother, so no need to register it in the dynamic type system15:26
Sputand it's qRegisterMetaTypeStreamOperators() :)15:26
apacheloggerwell then15:37
apacheloggerSput: there comes the need for copy constructors15:37
Sputapachelogger: no?15:37
SputI don't see where you'd need to copy objects15:38
apacheloggergcc wants to eat me once I added the metatype stuff15:38
SputYDIW then15:38
Sputyou could show a buildlog :P15:38
apacheloggerSput: http://paste.ubuntu.com/433873/15:40
apacheloggerah15:41
apacheloggerSput: This macro makes the type Type known to QMetaType as long as it provides a public default constructor, a public copy constructor and a public destructor.15:41
apacheloggerfrom the documentatoin of Q_DECLARE_METATYPE15:41
apacheloggerso obviously I did not do it wrong :P15:41
Sputapachelogger: very weird15:46
apacheloggerSput: maybe it is there so that people who dont know how to implement a cctor wont mess with the metatypes ;)15:48
apacheloggeri.e. people like Quintasan15:48
apacheloggerwell15:51
apacheloggersomething I do wrong15:51
apacheloggerI have a class Account, that has a member of type Subscription and that has a member of type SubscriptionUpgrade15:51
apacheloggerSubscription and SubscriptionUpgrade both have SubscriptionObject as base, and that is a QObject15:51
apacheloggernow if I try to let qjson do magic on an instance of Account automoc will cause failure because ... if the Subscription instance is not a pointer, it will want to have an assignment operator overload15:53
apacheloggeronly god knows why15:53
apacheloggerif I make it a pointer the qjson magic fails for whatever reason there might be (or maybe the Qt property stuff does...)15:53
apacheloggerthis is all very meh.15:53
jtechidnaNeat @ kde bug 22712716:03
ubottuKDE bug 227127 in general "Implement an "undo close-tab" feature" [Wishlist,Resolved: fixed] http://bugs.kde.org/show_bug.cgi?id=22712716:03
jtechidnaI'm sold for rekonq ;)16:03
=== jtechidna changed the topic of #kubuntu-devel to: Welcome to the Kubuntu Development channel | Let's all be mavericks | Congratulations to neversfelde for making MOTU \o \o o/ o/ \o/ \o/
=== jtechidna changed the topic of #kubuntu-devel to: Welcome to #kubuntu-devel | Let's all be mavericks | Congratulations to neversfelde for making MOTU \o \o o/ o/ \o/ \o/
unggnuhi all16:14
unggnuThere is a patch for KDE since Karmic which allows to change brightness of lcds. Does anyone know where to find it? It doesn't seem to be available upstream.16:15
=== nigelbabu is now known as nigelb
unggnuI mean this fix: https://bugs.launchpad.net/ubuntu/+source/kubuntu-default-settings/+bug/293213/comments/2116:20
ubottuLaunchpad bug 293213 in qt4-x11 "Qt and kde4libs don't support various multimedia keys" [Medium,Fix released]16:20
=== yofel_ is now known as yofel
Quintasanapachelogger: hey, who the hell can't implement a ctor?17:36
* Quintasan goes out for some sort of event17:39
apacheloggerQuintasan: you17:42
Quintasan:<17:42
Quintasanvoid Horse::Horse() { std::cout << "I'm a horse, I can't help you" << std::endl; }17:43
Quintasanwho cares if it's useless? :P17:43
apacheloggersee, what troubles me is that void right there :P17:47
apacheloggerdoesnt get any more pointless than that17:47
Quintasan[18:43] <Quintasan> who cares if it's useless? :P17:47
Quintasan:P17:47
apacheloggerwell then17:49
apacheloggerI was talking about cctors17:49
apacheloggerand that is no cctor :P17:50
apacheloggerapi is at 743 sloc -.-17:53
Riddellapachelogger: you pinged?17:59
apacheloggerRiddell: I forgot what it was about ... something about Qt's type system probably :)18:00
apacheloggerRiddell: btw, authing works for the better part, and I am currently implementing the ubunuone REST api (necessary for KCM)18:00
Riddellapachelogger: careful or you'll have it all implemented before SoC begins :)18:01
apachelogger^^18:01
* apachelogger wants the UI stuff out of the way so he can dive into akonadi :)18:02
JontheEchidnaRiddell: I meant to bring this up at UDS, but I forgot. Can we merge virtuoso this cycle?18:36
JontheEchidnaDebian has a dedicated maintainer now, so it shouldn't be a great burden on our part18:36
=== JontheEchidna changed the topic of #kubuntu-devel to: Welcome to #kubuntu-devel | KDE merges: https://wiki.kubuntu.org/Kubuntu/MaverickKDEMerges | Congratulations to neversfelde for making MOTU \o \o o/ o/ \o/ \o/
JontheEchidnaPatch review page needs set up too18:44
nigelbJontheEchidna: patch review?18:47
JontheEchidnanigelb: Like this, except for maverick: https://wiki.kubuntu.org/Kubuntu/LucidPatchReview19:04
RiddellJontheEchidna: we should merge everything unlesss there's a good reason not to19:08
JontheEchidnaRiddell: Ok. I was wondering because of the hoops we needed to jump through for getting the MIR approved, but I suppose that keeping a separate package from Debian would be less secure since we'd have to maintain it ourselves19:09
JontheEchidnaHah, Roman really does look different with long hair19:10
nigelbJontheEchidna: nice page :)19:11
JontheEchidnanigelb: It was really helpful last cycle. :)19:15
JontheEchidnaHmm, my aunt seems anxious for Belgium pictures on Facebook19:16
JontheEchidnaI'd better get right on that19:16
nigelbJontheEchidna: um, belgium, pictures, I'm anxious too!19:21
JontheEchidna;)19:21
JontheEchidnahrm, pkg-kde-tools needs a newer dpkg20:23
JontheEchidnanigelb: http://www.facebook.com/album.php?aid=21323321:33
JontheEchidna(Dunno if people without FB accounts can see it though)21:33
ryanakcaJontheEchidna: Even with a FB account I can't see it21:40
JontheEchidnaryanakca: I should add you as a friend then21:42
JontheEchidnahmm, there are like 5 Ryan Kavanaghs21:43
nigelbJontheEchidna: can add me as friend too?21:56
JontheEchidnanigelb: I can't find you on facebook21:58
JontheEchidnaunless your profile picture is of the pope21:58
nigelbJontheEchidna: no21:58
nigelbdid you try 'nigel babu'?21:59
JontheEchidna...or if you're a woman from south africa21:59
JontheEchidnayes21:59
JontheEchidnaI get this searching for "nigel babu": http://simplest-image-hosting.net/i0-plasma-desktoptw1449-jpg.jpg22:00
nigelboh, my fault22:00
nigelbaccount privacy settings22:00
JontheEchidnaah, right22:00
nigelbadded you :)22:01
JontheEchidnaconfirmed22:01
nigelbawesome, thanks22:02
* nigelb comments furiously.22:09
nigelbI hope JontheEchidna doesn't regret adding me :D22:09
JontheEchidnaNaw. ;)22:09
ryanakcaJontheEchidna: You could try making the album visible to everyone? (If that's possible. I don't use FB all that much, so I'm guessing)22:42
ryanakcaAh, nevermind, it is visible to all22:43

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!