bool GPCamera::cameraManual(QString& manual) { #ifdef HAVE_GPHOTO2 int errorCode; CameraText man; d->status->cancel = false; errorCode = gp_camera_get_manual(d->camera, &man, d->status->context); if (errorCode != GP_OK) { qCDebug(DIGIKAM_IMPORTUI_LOG) << "Failed to get camera manual!"; printGphotoErrorDescription(errorCode); return false; } // I guess manual is plain text and not HTML? // Can't test it. (Michael G. Hansen) manual = Qt::convertFromPlainText(QString::fromLocal8Bit(man.text), Qt::WhiteSpacePre); return true; #else Q_UNUSED(manual); return false; #endif /* HAVE_GPHOTO2 */ }
static CORBA_char * impl_GNOME_Camera_getInfo (PortableServer_Servant servant, CORBA_Environment *ev) { GnoCamCamera *c; CameraText text; c = GNOCAM_CAMERA (bonobo_object_from_servant (servant)); CR (gp_camera_get_manual (c->camera, &text, NULL), ev); if (BONOBO_EX (ev)) return (NULL); return (g_strdup (text.text)); }