OSSP CVS Repository

ossp - Check-in [4035]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 4035
Date: 2003-Feb-13 22:50:35 (local)
2003-Feb-13 21:50:35 (UTC)
User:ms
Branch:
Comment: Fixed bug in class Simplefile, trying to save to non-open file, and added code to conditionally save backup files based new user preferences.
Tickets:
Inspections:
Files:
ossp-pkg/as/as-gui/ChangeLog      1.38 -> 1.39     12 inserted, 0 deleted
ossp-pkg/as/as-gui/as_sfile.cpp      1.2 -> 1.3     10 inserted, 11 deleted
ossp-pkg/as/as-gui/as_slot.cpp      1.122 -> 1.123     2 inserted, 1 deleted

ossp-pkg/as/as-gui/ChangeLog 1.38 -> 1.39

--- ChangeLog    2003/02/12 19:35:17     1.38
+++ ChangeLog    2003/02/13 21:50:35     1.39
@@ -1,5 +1,17 @@
 Geschichte des OSSP titraq in Vorwaerts Cronordnung
 
+030213 Implemented multiple row spanning SOAP trasmissions
+       Modified CORBA and SOAP methods to use preferences host names
+       Added lock methods to class Panel to lock RPC transports on or off
+       Added logic to limit RPC according to compile time availability
+       Merged both IIOP and SOAP RPC transport actions into a single one
+       Revised RPC options and menu logic to pref panel and action changes
+       Modified class Panel accept operation to apply changes immediately
+       Activate file extension switch, and use preference value from panel
+       Remove default event file insert, and instead default to event directory
+       Fixed bug in class Simplefile, trying to save to non-open file
+       Save backup files based on existing logic and new user preferences
+
 030212 Finished preferences working logic in class Panel
 
 030211 Served rse request to make amount edit control widget match table one


ossp-pkg/as/as-gui/as_sfile.cpp 1.2 -> 1.3

--- as_sfile.cpp 2003/02/13 21:32:36     1.2
+++ as_sfile.cpp 2003/02/13 21:50:35     1.3
@@ -45,19 +45,18 @@
     QTextStream Streambak;  // Stream to write to (Filebak)
 
     try {
-        Q_ASSERT(!this->exists());          // Conditionally short circuit
+        if(!this->exists())                 // Conditionally short circuit if
+            return;                         // file to backup does not exist
         Fname = this->name();               // Copy filename from original
         Filein.setName(Fname);              // Set filename of original
-        if (Filein.exists()) {              // Can only backup an existing file
-            Filein.open(IO_ReadOnly);           // Open original read-only
-            Filebak.setName(Fname + ".bak");    // Set filename of backup
-            Filebak.open(IO_WriteOnly);         // Open backup write-only
-            Streamin.setDevice(&Filein);        // Set incoming stream
-            Streambak.setDevice(&Filebak);      // Set outgoing stream
-            Streambak << Streamin.read();       // Do actual writing
-            Filein.close();                     // Close original
-            Filebak.close();                    // Close backup
-        }
+        Filein.open(IO_ReadOnly);           // Open original read-only
+        Filebak.setName(Fname + ".bak");    // Set filename of backup
+        Filebak.open(IO_WriteOnly);         // Open backup write-only
+        Streamin.setDevice(&Filein);        // Set incoming stream
+        Streambak.setDevice(&Filebak);      // Set outgoing stream
+        Streambak << Streamin.read();       // Do actual writing
+        Filein.close();                     // Close original
+        Filebak.close();                    // Close backup
     }
     catch (Genexcept& Genex) {
         Genex.reportErr();


ossp-pkg/as/as-gui/as_slot.cpp 1.122 -> 1.123

--- as_slot.cpp  2003/02/13 21:12:36     1.122
+++ as_slot.cpp  2003/02/13 21:50:35     1.123
@@ -454,7 +454,8 @@
         }
 
         Filevents.setName(Fname);   // Construct a file to write
-        Filevents.makeBackup();     // Back up to filename.bak
+        if (m_pPrefs->getBool(TITRAQ_PREFBAKON, TITRAQ_DEFBAKON))
+            Filevents.makeBackup(); // Back up to filename.bak
         this->saveData(Filevents);  // Pass to helper method
     }
     catch (Genexcept& Genex) {

CVSTrac 2.0.1