src/hbutils/document/hbdocumentloader.cpp
changeset 3 11d3954df52a
parent 1 f7ac710697a9
child 6 c3690ec91ef8
equal deleted inserted replaced
2:06ff229162e9 3:11d3954df52a
    46     this method creates always new instances based on class name. In addition to basic \c QObject 
    46     this method creates always new instances based on class name. In addition to basic \c QObject 
    47     classes provided by Qt, only public widgets of Hb library are supported. Thus, in order to be 
    47     classes provided by Qt, only public widgets of Hb library are supported. Thus, in order to be 
    48     able to create your own custom widgets, you have to derive from this class and override 
    48     able to create your own custom widgets, you have to derive from this class and override 
    49     \c createObject method.
    49     \c createObject method.
    50 
    50 
       
    51     See \c HbDocumentLoader::createBinary for information about DocML binary conversion
       
    52     in build time.
       
    53 
    51     Use the \c HbDocumentLoaderPlugin to add tool support for custom widgets.
    54     Use the \c HbDocumentLoaderPlugin to add tool support for custom widgets.
    52     
    55     
    53     Example code:
    56     Example code:
    54     \snippet{documentloadersample.cpp,1}
    57     \snippet{documentloadersample.cpp,1}
    55 
    58 
   160     return load( device, QString(), ok );
   163     return load( device, QString(), ok );
   161 }
   164 }
   162 
   165 
   163 /*!
   166 /*!
   164     Converts DocML document to binary document. 
   167     Converts DocML document to binary document. 
       
   168 
       
   169     You can also convert DocML files to binary format in build time by listing the files in "DOCML"
       
   170     variable in the .pro file. This will create a binary docml file called <file_name>.bin that
       
   171     can be included to the resources (.qrc). 
       
   172     
       
   173     Known issues: Currently the resource compiler gives warnings about missing binary files during
       
   174     qmake. It's ok to ignore these warnings. 
       
   175 
       
   176     For more information about DocML binary format, please refer to S60QtProgrammersGuide.
       
   177 
   165     \param srcDevice source IO device to be processed.
   178     \param srcDevice source IO device to be processed.
   166     \param dstDevice destination IO device where to write to.
   179     \param dstDevice destination IO device where to write to.
   167     \return true if conversion was ok.
   180     \return true if conversion was ok.
   168 */
   181 */
   169 bool HbDocumentLoader::createBinary( QIODevice *srcDevice, QIODevice *dstDevice )
   182 bool HbDocumentLoader::createBinary( QIODevice *srcDevice, QIODevice *dstDevice )