Commit graph

367 commits

Author SHA1 Message Date
Juan Carlos Cornejo
ed4fc09592 Updating the files that belong to this project in QtCreator. 2012-02-15 08:55:13 +01:00
Juan Carlos Cornejo
2c3373d7d9 Contacted the author of the sqlite3_util.cpp function and found out
it was placed in the public domain. Made the changes to the header
and cpp file to reflect that.

Also renamed LICENSE to COPYING-GPL and made not of the overall
project license in COPYING
2012-02-15 08:55:13 +01:00
Juan Carlos Cornejo
ccd96a5edd Bump patch version to 0.4.3 2012-02-15 08:55:13 +01:00
Juan Carlos Cornejo
11836e4788 Reimplemented the file progress that apparently I accidentally disabled
when I made the change to multiple accounts.  Should be working again.
2012-02-15 08:55:13 +01:00
Juan Carlos Cornejo
6e2986a16d Implemented a proper timeout for the network requests. If it times out,
it will continue where it left off on the next sync cycle.

Also removed a bug that prevented the program from closing if the
requests timed out.
2012-02-15 08:55:13 +01:00
Juan Carlos Cornejo
2b746ba6ec Clean up of some debug codes and output.
Made sure that all messages sent to the GUI (not the command line) use
the tr() function for proper translation later (if needed).
2012-02-15 08:55:13 +01:00
Juan Carlos Cornejo
ec9cadd474 Bump patch version to 0.4.2 2012-02-15 08:55:13 +01:00
Juan Carlos Cornejo
1581ea3135 Fixed typo on database name. Should be filters, not filter. 2012-02-15 08:55:13 +01:00
Juan Carlos Cornejo
2ee038b207 Fixed a bug that allowed one to enter filters before the account was created. Now the filters list is disabled until one saves the account.
Also, fixed a small bug in which new accounts would display the last used filters.
2012-02-15 08:55:13 +01:00
Juan Carlos Cornejo
6b43bbb989 Changed the desktop file to point to the new correct installation
location of /usr/bin
2012-02-15 08:55:13 +01:00
Juan Carlos Cornejo
61708eab0a Added two missing images to the repository. 2012-02-15 08:55:13 +01:00
Juan Carlos Cornejo
42004a3377 Fixed the installation path for owncloud_sync to be in /usr/bin by
default.

Bumped version number to 0.4.1
2012-02-15 08:55:13 +01:00
Juan Carlos Cornejo
0e004ec570 Fixed a bug in the conflict resolution screen. I accidentally selected
the wrong table when I made the change to allow multiple accounts.

Minor GUI enhancements on the conflict resolution screen.
2012-02-15 08:55:13 +01:00
Juan Carlos Cornejo
a9ba915972 Added a menu option to select the default behavior of when the user
closes the window.

By the fault, the window is hidden when the window is closed. But the
user may change it to their likings.
2012-02-15 08:55:13 +01:00
Juan Carlos Cornejo
9b9b7b17ef Added ability to remove an account. User must enable the button from the
menu bar in order to remove the account.  Note, files will not be
deleted but all synchronization information will be lost.
2012-02-15 08:55:13 +01:00
Juan Carlos Cornejo
84e60b20cd Made the hide on start configurable. Now a user checks the checkbox in
the menu to decide if they want to hide the window at start or not.
Note, the window will show if no accounts are configured, regardless of
the user setting.
2012-02-15 08:55:13 +01:00
Juan Carlos Cornejo
7601e2f52c Added a context menu to the tray icon and the application. Now clicking
the close button will hide the application window. One must go to the
menu on either the tray icon or the application menu to quit.
2012-02-15 08:55:13 +01:00
Juan Carlos Cornejo
c1568f52ed Added notice indicating why program will exit if another instance is
running.

Also, minor changes to what OwnCloudSync class sends to the log.
2012-02-15 08:55:12 +01:00
Juan Carlos Cornejo
dce757f94f Minor typo fix on the license. Removed reference to Foobar, the default
template name for the program.
2012-02-15 08:55:12 +01:00
Juan Carlos Cornejo
71c3c93500 Added the GPL copyright notice ontop of *most* libraries. I still have
to figure out what the sqlite3_util file is.
2012-02-15 08:55:12 +01:00
Juan Carlos Cornejo
3d4d8081b3 Minor UI improvements. Status bar now has more information, window title
now reflects the program name and there is at tool tip on the system
tray icon.
2012-02-15 08:55:12 +01:00
Juan Carlos Cornejo
af0f00d115 Added versioning information (it was about time). Currently set to
version 0.3 and this is displayed in the status bar.
2012-02-15 08:55:12 +01:00
Juan Carlos Cornejo
dd1b49aed1 Added a confirmation when the user closes the window if he/she wants to
truly quit.
2012-02-15 08:55:12 +01:00
Juan Carlos Cornejo
fabf7532ef Implemented file filters. The only wildcard accepted is *. 2012-02-15 08:55:12 +01:00
Juan Carlos Cornejo
856d257adc Fixed the debugging option that saved logs after every 10th sync.
Changed that a more manageable 1000 syncs.
2012-02-15 08:55:12 +01:00
Juan Carlos Cornejo
a4da328368 A drastic change required to allow for multiple accounts, and choosing
server folder to sync. It turned out to be harder than anticipated.

But now multiple accounts can be created (no way to remove them yet,
that wil come next).

On account configuration page, one can now select the remote file server
to sync. Leave blank to sync root folder.
2012-02-15 08:55:12 +01:00
Juan Carlos Cornejo
c11ea04c96 Fixed bug that prevented files from being deleted properly accross all
clients. It had to do with not setting the found variable properly.

Additionally, more output is added to the log regarding file deltion
both locally and server wise.
2012-02-15 08:55:12 +01:00
Juan Carlos Cornejo
602e6914a4 Now the username, password and hostname are checked before a
synchronization is attempted.
2012-02-15 08:55:12 +01:00
Juan Carlos Cornejo
fb53edfd41 Logs are now saved to file and cleared from the screen every 1000th sync 2012-02-15 08:55:12 +01:00
Juan Carlos Cornejo
3f0ccf1748 Implemented a user required conflict resolution when files where edited
locally AND in the server.  The files will not be updated until the user
selects which of the two files is the newest one. Note that at this
time, other clients may be updating the server. So the client should
take caution to select the proper new file.

The server file is downloaded to disk and prepended with _ocs_conflict.
so that the user can open both files and compare accordingly.

A message appears notifying the user of the conflict, and the clouds
turn red. They will not be reverted back to blue until all conflicts are
cleared.
2012-02-15 08:55:12 +01:00
Juan Carlos Cornejo
6265ed0ab9 Autohide window if SystemTray is available and we are fully configured. 2012-02-15 08:55:12 +01:00
Juan Carlos Cornejo
add4cf24e3 Implemented a file dialog for choosing the Sync Directory.
Disable and enable save button as appropriate.
2012-02-15 08:55:12 +01:00
Juan Carlos Cornejo
41c9e90852 Implemented a trick to allow only one instance of the application to
run. This should hopefully prevent corruption of the sync directory.
2012-02-15 08:55:12 +01:00
Juan Carlos Cornejo
07685110b9 Implemented file deletion. Now files are deleted on both sides when one
side deletes theirs. This does not yet implement file moving. If files
are moved, it will just reupload or download them because it will treat
them as new files.

A minor bug fix also. Now the watcher is removed for files that are
being downloaded or deleted. Then added again if appropriate. This
prevented the watcher from annoucing a change and attempting to upload
the changes to the server.
2012-02-15 08:55:12 +01:00
Juan Carlos Cornejo
5e3a475a87 Found a function online at
http://www.qtcentre.org/threads/36131-Attempting-to-use-Sqlite-backup-api-from-driver-handle-fails
on a post by chemmalion that allows one to save a memory sqlite3 database to file.

This is really neat because now the strain on the hardrive is gone!

This version loads the database on startup and saves it every 3 minutes to disk.
The database is saved upon closing the program as well.
2012-02-15 08:55:12 +01:00
Juan Carlos Cornejo
da7795437b Major fixes in this version. Apparently there were a lot of bugs in
comparing files between the server.  Now it is more reasonable.

Also, less use of the hardisk because now I implemented a
QFileSystemWatch instance. This is much better and lets me know of file
changes. Though, there is still a strain on the HD due to the constant
SQLite access that I use.

I can't figure out a nice way to find out what files were added (removed
will be fore later) without listing the entire directory and comparing
against the DB.
2012-02-15 08:55:12 +01:00
Juan Carlos Cornejo
cb1740ee4a Initial commit.
This version does synchronization, but does not tolerate any file deletions.
It will chew your files up!!

May contain bugs!!
2012-02-15 08:55:12 +01:00
Klaas Freitag
ad0be9f6ee - Added info dialog with file listing
- Added overall status display on the tray icon plus tooltip
-> patches from Alvaro Soliverez
2012-01-23 22:10:01 +01:00
Klaas Freitag
128223553c added a windows compatible implementation 2012-01-20 10:21:49 +01:00
Dominik Schmidt
7e988d2e08 win32: fix static linking to libmirall/qwebdav 2012-01-19 14:10:18 +01:00
Klaas Freitag
e168eeae46 more useful user feedback about sync state, patch provided by Alvaro Soliverez 2011-12-29 09:31:45 +01:00
Klaas Freitag
bb2baeb1d2 Two patches sent by Alvaro Soliverez <asoliverez@kde.org>:
- fixed refresh of the folder list in the status dialog
- show enabled status in the status dialog
2011-12-25 21:55:29 +01:00
Klaas Freitag
0c9c2962c2 Enable/Disable button, patch submitted by Alvaro Soliverez 2011-12-12 17:47:30 +01:00
Klaas Freitag
c23c96cdc6 - add exclude patterns to sitecopy config, Patch contributed by Alvaro
Soliverez
2011-12-12 17:26:13 +01:00
Klaas Freitag
a3fa419f82 Bump version 2011-12-05 12:03:16 +01:00
Klaas Freitag
180c06b39e Patch sent in by Alvaro Soliverez: Add a "upload" button to the
Status dialog to solve conflict situations from local -> cloud
2011-12-05 12:01:39 +01:00
Klaas Freitag
bf40e0aafc - added icon defaults for systems without icon theming bnc#730834
- fixed some bugs with ownCloud status check fails
- bumped version to 0.1.2
2011-11-28 14:53:34 +01:00
Klaas Freitag
56a30af52d virtual inheritance not supported, fix compile problem 2011-11-28 13:35:46 +01:00
Klaas Freitag
37d6fb6022 Version string added 2011-11-24 16:38:12 +01:00
Klaas Freitag
cb4c5e31b1 - fix ownCloud sourcepackage download from owncloud.org
- fix installation output in setup dialog
2011-11-24 16:26:24 +01:00