From kde-commits Wed Sep 30 23:48:48 2009 From: =?utf-8?q?Friedrich=20W=2E=20H=2E=20Kossebau?= Date: Wed, 30 Sep 2009 23:48:48 +0000 To: kde-commits Subject: KDE/kdeutils/okteta/kasten/controllers/view/libbytearraychecksum Message-Id: <1254354528.054599.22230.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=125435454224484 SVN commit 1029880 by kossebau: fixed: complete adaption of instructions for adding new algorithm from the one for new filter M +4 -4 bytearraychecksumalgorithmfactory.cpp M +8 -8 bytearraychecksumparameterseteditfactory.cpp --- trunk/KDE/kdeutils/okteta/kasten/controllers/view/libbytearraychecksum/bytearraychecksumalgorithmfactory.cpp #1029879:1029880 @@ -35,9 +35,9 @@ #include "algorithm/qca2bytearraychecksumalgorithm.h" #endif // NEWCHECKSUM(start) -// Here add the name of your header file of your filter, +// Here add the name of your header file of your checksum algorithm, // e.g. -// #include "filter/my_bytearrayfilter.h" +// #include "algorithm/mybytearraychecksumalgorithm.h" // NEWCHECKSUM(end) // KDE #include @@ -67,10 +67,10 @@ << new Adler32ByteArrayChecksumAlgorithm() << new Crc32ByteArrayChecksumAlgorithm(); // NEWCHECKSUM(start) -// Here add the creation of an object of your checksum class and add it to the list, +// Here add the creation of an object of your checksum algorithm class and add it to the list, // e.g. // result -// << new My_ByteArrayChecksumAlgorithm(); +// << new MyByteArrayChecksumAlgorithm(); // NEWCHECKSUM(end) #ifdef HAVE_QCA2 --- trunk/KDE/kdeutils/okteta/kasten/controllers/view/libbytearraychecksum/bytearraychecksumparameterseteditfactory.cpp #1029879:1029880 @@ -25,11 +25,11 @@ // lib #include "algorithm/modsumbytearraychecksumparametersetedit.h" #include "algorithm/nobytearraychecksumparametersetedit.h" -//// NEWFILTERPARAMETERSET(start) +//// NEWCHECKSUMPARAMETERSET(start) //// Here add the name of your header file of your edit widget for the parameterset, //// e.g. -//// #include "filter/my_bytearrayfilterparametersetedit.h" -//// NEWFILTERPARAMETERSET(end) +//// #include "algorithm/mybytearraychecksumparametersetedit.h" +//// NEWCHECKSUMPARAMETERSET(end) AbstractByteArrayChecksumParameterSetEdit* ByteArrayChecksumParameterSetEditFactory::createEdit( const char* id ) @@ -38,13 +38,13 @@ if( qstrcmp(id,ModSumByteArrayChecksumParameterSetEdit::Id) == 0 ) result = new ModSumByteArrayChecksumParameterSetEdit(); -//// NEWFILTERPARAMETERSET(start) +//// NEWCHECKSUMPARAMETERSET(start) //// Here add the check for the id of your parameter set -//// and if it matches the creation of the widget +//// and, if it matches, the creation of the widget //// e.g. -//// else if( qstrcmp(id,My_ByteArrayFilterParameterSetEdit::Id) == 0 ) -//// result = new My_ByteArrayFilterParameterSetEdit(); -//// NEWFILTERPARAMETERSET(end) +//// else if( qstrcmp(id,MyByteArrayChecksumParameterSetEdit::Id) == 0 ) +//// result = new MyByteArrayChecksumParameterSetEdit(); +//// NEWCHECKSUMPARAMETERSET(end) else //if( qstrcmp(id,NoByteArrayChecksumParameterSetEdit::Id) == 0 ) TODO: default should be a message "Not found" result = new NoByteArrayChecksumParameterSetEdit();