summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/multimedia/camera/imageio.cpp4
-rw-r--r--noncore/multimedia/camera/mainwindow.cpp46
-rw-r--r--noncore/multimedia/camera/opie-camera.control2
3 files changed, 40 insertions, 12 deletions
diff --git a/noncore/multimedia/camera/imageio.cpp b/noncore/multimedia/camera/imageio.cpp
index f8f5dd0..ed0d39f 100644
--- a/noncore/multimedia/camera/imageio.cpp
+++ b/noncore/multimedia/camera/imageio.cpp
@@ -48,3 +48,3 @@ void imageToFile( QImage* i, const QString& name, const QString& format, int qua
48 { 48 {
49 oerr << "imageio-Problem while writing." << oendl; 49 oerr << "imageio-Problem while writing to " << name << oendl;
50 } 50 }
@@ -54,2 +54,2 @@ void imageToFile( QImage* i, const QString& name, const QString& format, int qua
54 } 54 }
55} \ No newline at end of file 55}
diff --git a/noncore/multimedia/camera/mainwindow.cpp b/noncore/multimedia/camera/mainwindow.cpp
index 16ee8bc..49c7cbf 100644
--- a/noncore/multimedia/camera/mainwindow.cpp
+++ b/noncore/multimedia/camera/mainwindow.cpp
@@ -160,5 +160,5 @@ void CameraMainWindow::init()
160 outputTog->setToggleAction( true ); 160 outputTog->setToggleAction( true );
161 new QAction( "/tmp", 0, 0, outputTog, 0, true ); 161 new QAction( "/tmp/", 0, 0, outputTog, 0, true );
162 new QAction( "/mnt/card/", 0, 0, outputTog, 0, true ); 162 new QAction( "/mnt/card/", 0, 0, outputTog, 0, true );
163 new QAction( "/mnt/sd/", 0, 0, outputTog, 0, true ); 163 new QAction( "/mnt/cf/", 0, 0, outputTog, 0, true );
164 docfolder = new QAction( "Documents Folder", 0, 0, outputTog, 0, true ); 164 docfolder = new QAction( "Documents Folder", 0, 0, outputTog, 0, true );
@@ -424,3 +424,11 @@ void CameraMainWindow::performCapture( const QString& format )
424 if ( outputTo == "Documents Folder" ) 424 if ( outputTo == "Documents Folder" )
425 name.sprintf( "%s/Documents/image/%s/", (const char*) QDir::homeDirPath(), (const char*) captureFormat.lower() ); 425 {
426 name.sprintf( "%s/Documents/image/%s/", (const char*) QDir::homeDirPath(), (const char*) captureFormat.lower() );
427 if ( !QDir( name ).exists() )
428 {
429 odebug << "creating directory " << name << oendl;
430 QString msg = "mkdir -p " + name;
431 system( msg.latin1() );
432 }
433 }
426 else 434 else
@@ -503,4 +511,18 @@ void CameraMainWindow::stopVideoCapture()
503 511
504 QString name( outputTo ); 512 QString name;
505 name.append( "/prefix" ); 513 if ( outputTo == "Documents Folder" )
514 {
515 name.sprintf( "%s/Documents/video/%s/", (const char*) QDir::homeDirPath(), (const char*) captureFormat.lower() );
516 if ( !QDir( name ).exists() )
517 {
518 odebug << "creating directory " << name << oendl;
519 QString msg = "mkdir -p " + name;
520 system( msg.latin1() );
521 }
522 }
523 else
524 name = outputTo;
525
526 name.append( "/" ); // sure is sure and safe is safe ;-)
527 name.append( prefix );
506 if ( appendSettings ) 528 if ( appendSettings )
@@ -521,2 +543,4 @@ void CameraMainWindow::postProcessVideo( const QString& infile, const QString& o
521{ 543{
544 odebug << "post processing " << infile << " --> " << outfile << oendl;
545
522 preview->setRefreshingRate( 0 ); 546 preview->setRefreshingRate( 0 );
@@ -598,3 +622,3 @@ void CameraMainWindow::postProcessVideo( const QString& infile, const QString& o
598 622
599 #ifndef QT_NO_DEBUG 623 #ifdef CAMERA_EXTRA_DEBUG
600 QString tmpfilename; 624 QString tmpfilename;
@@ -623,5 +647,2 @@ void CameraMainWindow::postProcessVideo( const QString& infile, const QString& o
623 647
624 odebug << "deleting temporary capturefile " << infile << oendl;
625 ::close( infd );
626 QFile::remove( infile );
627 } 648 }
@@ -630,2 +651,8 @@ void CameraMainWindow::postProcessVideo( const QString& infile, const QString& o
630 ::close( outfd ); 651 ::close( outfd );
652 ::close( infd );
653
654 label->setText( "deleting temp files..." );
655 qApp->processEvents();
656 odebug << "deleting temporary capturefile " << infile << oendl;
657 QFile::remove( infile );
631 658
@@ -645,2 +672,3 @@ void CameraMainWindow::updateCaption()
645 setCaption( "Opie-Camera: => CAPTURING <=" ); 672 setCaption( "Opie-Camera: => CAPTURING <=" );
673 qApp->processEvents();
646} 674}
diff --git a/noncore/multimedia/camera/opie-camera.control b/noncore/multimedia/camera/opie-camera.control
index a33de38..1731ad2 100644
--- a/noncore/multimedia/camera/opie-camera.control
+++ b/noncore/multimedia/camera/opie-camera.control
@@ -6,3 +6,3 @@ Maintainer: Michael 'Mickey' Lauer <mickeyl@handhelds.org>
6Architecture: arm 6Architecture: arm
7Version: $QPE_VERSION-$SUB_VERSION 7Version: 1.0
8Depends: task-opie-minimal, libopie2 (1.8.1) 8Depends: task-opie-minimal, libopie2 (1.8.1)