|
|
@ -845,10 +845,19 @@ bool GPCamera::uploadItem(const TQString& folder, const TQString& itemName, cons
|
|
|
|
|
|
|
|
|
|
|
|
m_status = new GPStatus;
|
|
|
|
m_status = new GPStatus;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef HAVE_GPHOTO25
|
|
|
|
errorCode = gp_camera_folder_put_file(d->camera,
|
|
|
|
errorCode = gp_camera_folder_put_file(d->camera,
|
|
|
|
TQFile::encodeName(folder),
|
|
|
|
TQFile::encodeName(folder),
|
|
|
|
|
|
|
|
TQFile::encodeName(itemName),
|
|
|
|
|
|
|
|
GP_FILE_TYPE_NORMAL,
|
|
|
|
cfile,
|
|
|
|
cfile,
|
|
|
|
m_status->context);
|
|
|
|
m_status->context);
|
|
|
|
|
|
|
|
#else
|
|
|
|
|
|
|
|
errorCode = gp_camera_folder_put_file(d->camera,
|
|
|
|
|
|
|
|
TQFile::encodeName(folder),
|
|
|
|
|
|
|
|
cfile,
|
|
|
|
|
|
|
|
m_status->context);
|
|
|
|
|
|
|
|
#endif
|
|
|
|
if (errorCode != GP_OK)
|
|
|
|
if (errorCode != GP_OK)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
DDebug() << "Failed to upload item to camera!" << endl;
|
|
|
|
DDebug() << "Failed to upload item to camera!" << endl;
|
|
|
@ -1108,7 +1117,13 @@ void GPCamera::getSupportedPorts(TQStringList& plist)
|
|
|
|
for (int i = 0 ; i < numPorts ; i++)
|
|
|
|
for (int i = 0 ; i < numPorts ; i++)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
gp_port_info_list_get_info( list, i, &info );
|
|
|
|
gp_port_info_list_get_info( list, i, &info );
|
|
|
|
|
|
|
|
#ifdef HAVE_GPHOTO25
|
|
|
|
|
|
|
|
char *xpath;
|
|
|
|
|
|
|
|
gp_port_info_get_name( info, &xpath );
|
|
|
|
|
|
|
|
plist.append( xpath );
|
|
|
|
|
|
|
|
#else
|
|
|
|
plist.append( info.path );
|
|
|
|
plist.append( info.path );
|
|
|
|
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|