[Kde-bindings] KDE/kdebindings/ruby/korundum
Richard Dale
Richard_Dale at tipitina.demon.co.uk
Tue Jul 3 15:46:01 UTC 2007
SVN commit 682875 by rdale:
* Made korundum build with the current kdelibs classes
CCMAIL: kde-bindings at kde.org
M +4 -0 ChangeLog
M +0 -62 src/kdehandlers.cpp
--- trunk/KDE/kdebindings/ruby/korundum/ChangeLog #682874:682875
@@ -1,3 +1,7 @@
+2007-07-03 Richard Dale <rdale at foton.es>
+
+ * Made korundum build with the current kdelibs classes
+
2007-04-20 Richard Dale <Richard_Dale at tipitina.demon.co.uk>
* Korundum now builds with KDE4, renamed the extension 'korundum4' for
--- trunk/KDE/kdebindings/ruby/korundum/src/kdehandlers.cpp #682874:682875
@@ -28,7 +28,6 @@
#include <kfileitem.h>
#include <kfileview.h>
#include <kurl.h>
-#include <kcmdlineargs.h>
#include <kaction.h>
#include <kfiletreebranch.h>
#include <khtml_part.h>
@@ -115,64 +114,6 @@
# define BREAKPOINT { fprintf(stderr, "hit ctrl-c\n"); int b = 0; while (b == 0) { ; } }
#endif
-void marshall_KCmdLineOptions(Marshall *m) {
- switch(m->action()) {
- case Marshall::FromVALUE:
- {
- VALUE optionslist = *(m->var());
- if (optionslist == Qnil
- || TYPE(optionslist) != T_ARRAY
- || RARRAY(optionslist)->len == 0 )
- {
- m->item().s_voidp = 0;
- break;
- }
-
- // Allocate 'length + 1' entries, to include an all NULLs last entry
- KCmdLineOptions *cmdLineOptions = (KCmdLineOptions *) calloc( RARRAY(optionslist)->len + 1,
- sizeof(struct KCmdLineOptions) );
-
- VALUE options;
- long i;
- for(i = 0; i < RARRAY(optionslist)->len; i++) {
- options = rb_ary_entry(optionslist, i);
- VALUE temp = rb_ary_entry(options, 0);
- cmdLineOptions[i].name = StringValuePtr(temp);
- temp = rb_ary_entry(options, 1);
- cmdLineOptions[i].description = StringValuePtr(temp);
- temp = rb_ary_entry(options, 2);
- cmdLineOptions[i].def = StringValuePtr(temp);
- }
- cmdLineOptions[i].name = 0;
- cmdLineOptions[i].description = 0;
- cmdLineOptions[i].def = 0;
-
-
- m->item().s_voidp = cmdLineOptions;
- m->next();
- /*
- if(m->cleanup()) {
- rb_ary_clear(optionslist);
- for(i = 0; cmdLineOptions[i].name; i++)
- options = rb_ary_new();
- rb_ary_push(options, rb_str_new2(cmdLineOptions[i].name));
- rb_ary_push(options, rb_str_new2(cmdLineOptions[i].description));
- rb_ary_push(options, rb_str_new2(cmdLineOptions[i].def));
- rb_ary_push(optionslist, options);
- }
- */
- }
- break;
- case Marshall::ToVALUE:
- {
- }
- break;
- default:
- m->unsupported();
- break;
- }
-}
-
/*
void marshall_KMimeTypeList(Marshall *m) {
switch(m->action()) {
@@ -882,7 +823,6 @@
Marshall::HandlerFn marshall_##ListIdent = marshall_ValueListItem<Item,ItemList,ListIdent##STR>;
DEF_VALUELIST_MARSHALLER( KAboutPersonList, QList<KAboutPerson>, KAboutPerson )
-DEF_VALUELIST_MARSHALLER( KAboutTranslatorList, QList<KAboutTranslator>, KAboutTranslator )
DEF_VALUELIST_MARSHALLER( ChoicesList, QList<KConfigSkeleton::ItemEnum::Choice>, KConfigSkeleton::ItemEnum::Choice )
DEF_VALUELIST_MARSHALLER( KDataToolInfoList, QList<KDataToolInfo>, KDataToolInfo )
DEF_VALUELIST_MARSHALLER( KIOCopyInfoList, QList<KIO::CopyInfo>, KIO::CopyInfo )
@@ -1000,12 +940,10 @@
*/
TypeHandler KDE_handlers[] = {
- { "KCmdLineOptions*", marshall_KCmdLineOptions },
{ "KService::Ptr", marshall_KServicePtr },
{ "KService::List", marshall_KServiceList },
{ "QList<KAboutPerson>", marshall_KAboutPersonList },
- { "QList<KAboutTranslator>", marshall_KAboutTranslatorList },
{ "QList<KAction*>", marshall_KActionList },
{ "QList<KActionCollection*>&", marshall_KActionCollectionList },
{ "QList<KConfigSkeleton::ItemEnum::Choice>", marshall_ChoicesList },
More information about the Kde-bindings
mailing list