owncloud:sebas-mirall.git
6 years agoadd documentation on why this classes exist socket_notifier
Duncan Mac-Vicar P [Tue, 13 Sep 2011 13:47:37 +0000 (15:47 +0200)]
add documentation on why this classes exist

6 years agoWhen explaining Ludwig Nussel the implementation of INotify.cpp I could
Duncan Mac-Vicar P [Tue, 13 Sep 2011 13:34:49 +0000 (15:34 +0200)]
When explaining Ludwig Nussel the implementation of INotify.cpp I could
not explain why I did not use QSocketNotifier. :-)

Port to QSocketNotifier and get rid of the thread loop.

This means INotify::init and ::cleanup are gone.

6 years agoadd support for the conflict copy feature available on csync git
Duncan Mac-Vicar P [Tue, 13 Sep 2011 12:18:47 +0000 (14:18 +0200)]
add support for the conflict copy feature available on csync git

6 years agoUpdate README
Duncan Mac-Vicar P [Fri, 8 Apr 2011 11:35:24 +0000 (13:35 +0200)]
Update README

6 years agolink Qt to the static library
Duncan Mac-Vicar P [Fri, 8 Apr 2011 10:03:09 +0000 (12:03 +0200)]
link Qt to the static library

6 years ago0.0.2 v0.0.2
Duncan Mac-Vicar P [Fri, 8 Apr 2011 09:39:35 +0000 (11:39 +0200)]
0.0.2

6 years agohandle errors to the UI
Duncan Mac-Vicar P [Fri, 8 Apr 2011 09:36:53 +0000 (11:36 +0200)]
handle errors to the UI

6 years agoincrease poll timer to 1 minute
Duncan Mac-Vicar P [Fri, 8 Apr 2011 08:51:18 +0000 (10:51 +0200)]
increase poll timer to 1 minute

6 years agoadd a mutex for the csync threads
Duncan Mac-Vicar P [Fri, 8 Apr 2011 08:49:28 +0000 (10:49 +0200)]
add a mutex for the csync threads

6 years agofor csync, accept smb:// urls as well
Duncan Mac-Vicar P [Fri, 8 Apr 2011 08:49:26 +0000 (10:49 +0200)]
for csync, accept smb:// urls as well

6 years agoforce the initial sync even if the list is empty as this point
Duncan Mac-Vicar P [Fri, 8 Apr 2011 08:48:22 +0000 (10:48 +0200)]
force the initial sync even if the list is empty as this point

6 years agoUse csync as default
Duncan Mac-Vicar P [Fri, 8 Apr 2011 07:58:16 +0000 (09:58 +0200)]
Use csync as default

6 years agog
Duncan Mac-Vicar P [Thu, 7 Apr 2011 17:04:07 +0000 (19:04 +0200)]
g
Basic implementation of a CSyncFolder

Still waiting for Jann's patches for conflictcopy to hit a stable
release to make it the default.

6 years agoSimplify how the event queue works. Now it is just a timer
Duncan Mac-Vicar P [Wed, 6 Apr 2011 20:35:08 +0000 (22:35 +0200)]
Simplify how the event queue works. Now it is just a timer
that gets restarted on every new event, and the processing starts
when no events reset the timer for the event interval.

6 years agofix warning
Duncan Mac-Vicar P [Wed, 6 Apr 2011 15:03:10 +0000 (17:03 +0200)]
fix warning

6 years agoMake the folders network state aware
Duncan Mac-Vicar P [Wed, 6 Apr 2011 13:57:18 +0000 (15:57 +0200)]
Make the folders network state aware

6 years agoadd simple network location infrastructure
Duncan Mac-Vicar P [Wed, 6 Apr 2011 13:22:40 +0000 (15:22 +0200)]
add simple network location infrastructure

6 years agomissing goal
Duncan Mac-Vicar P [Wed, 6 Apr 2011 11:50:31 +0000 (13:50 +0200)]
missing goal

6 years agobetter goals
Duncan Mac-Vicar P [Wed, 6 Apr 2011 11:49:58 +0000 (13:49 +0200)]
better goals

6 years agoMerge branch 'master' of github.com:dmacvicar/mirall
Duncan Mac-Vicar P [Wed, 6 Apr 2011 10:10:33 +0000 (12:10 +0200)]
Merge branch 'master' of github.com:dmacvicar/mirall

6 years agoadd license text
Duncan Mac-Vicar P [Wed, 6 Apr 2011 10:10:16 +0000 (12:10 +0200)]
add license text

6 years agoUse icons from theme. Qt already handles this in a nice way
Duncan Mac-Vicar P [Wed, 6 Apr 2011 10:09:56 +0000 (12:09 +0200)]
Use icons from theme. Qt already handles this in a nice way

6 years agoadd proper licensing
Duncan Mac-Vicar P [Wed, 6 Apr 2011 09:48:02 +0000 (11:48 +0200)]
add proper licensing

6 years agoadd proper licensing
Duncan Mac-Vicar P [Wed, 6 Apr 2011 09:45:05 +0000 (11:45 +0200)]
add proper licensing

6 years agofix markdown in README
Duncan Mac-Vicar P [Wed, 6 Apr 2011 09:31:54 +0000 (11:31 +0200)]
fix markdown in README

6 years agopreparing for first packaging
Duncan Mac-Vicar P [Wed, 6 Apr 2011 09:28:38 +0000 (11:28 +0200)]
preparing for first packaging

6 years agoSetup the menu for new added folders
Duncan Mac-Vicar P [Wed, 6 Apr 2011 08:56:20 +0000 (10:56 +0200)]
Setup the menu for new added folders

6 years agotypo, it is path() not root()
Duncan Mac-Vicar P [Wed, 6 Apr 2011 08:56:16 +0000 (10:56 +0200)]
typo, it is path() not root()

6 years agostop poll timer when syncing, and add path to the debug messages
Duncan Mac-Vicar P [Wed, 6 Apr 2011 08:40:15 +0000 (10:40 +0200)]
stop poll timer when syncing, and add path to the debug messages

6 years agoadd alias to folder
Duncan Mac-Vicar P [Wed, 6 Apr 2011 07:52:02 +0000 (09:52 +0200)]
add alias to folder

6 years agoFix crash at shutdown.
Duncan Mac-Vicar P [Tue, 5 Apr 2011 16:31:19 +0000 (18:31 +0200)]
Fix crash at shutdown.

Menu contains actions from the folders so we should
first delete the tray and the folders later.

Also change QHash in inotify watcher map to QMap as QHash
gives weird crashes with the inotify thread.

6 years agoworking folder wizard, only actual creation of the folder pending
Duncan Mac-Vicar P [Tue, 5 Apr 2011 16:31:14 +0000 (18:31 +0200)]
working folder wizard, only actual creation of the folder pending

6 years agomove polling system to Folder where it belongs
Duncan Mac-Vicar P [Tue, 5 Apr 2011 10:16:24 +0000 (12:16 +0200)]
move polling system to Folder where it belongs

6 years agoadd folder wizard class
Duncan Mac-Vicar P [Tue, 5 Apr 2011 09:10:44 +0000 (11:10 +0200)]
add folder wizard class

6 years ago- lot of stability improvements
Duncan Mac-Vicar P [Mon, 4 Apr 2011 16:41:14 +0000 (18:41 +0200)]
- lot of stability improvements
- the crash with threads goes away by using QMap
- add a polling timer

6 years agoChange icon when sync is running
Duncan Mac-Vicar P [Mon, 4 Apr 2011 10:23:30 +0000 (12:23 +0200)]
Change icon when sync is running

6 years agounused member variable
Duncan Mac-Vicar P [Mon, 4 Apr 2011 09:40:14 +0000 (11:40 +0200)]
unused member variable

6 years agoimplemented dynamic creation of folder configurations
Duncan Mac-Vicar P [Mon, 4 Apr 2011 09:36:44 +0000 (11:36 +0200)]
implemented dynamic creation of folder configurations
from INI files in user's home directory

6 years ago- refactor tests repeat-myself with a cmake macro
Duncan Mac-Vicar P [Thu, 31 Mar 2011 18:26:51 +0000 (20:26 +0200)]
- refactor tests repeat-myself with a cmake macro
- enable cmake testing

6 years agounneeded
Duncan Mac-Vicar P [Thu, 31 Mar 2011 18:26:32 +0000 (20:26 +0200)]
unneeded

6 years agoIf the first event happens before 5 secs after starting the
Duncan Mac-Vicar P [Thu, 31 Mar 2011 17:07:45 +0000 (19:07 +0200)]
If the first event happens before 5 secs after starting the
program, it will always cause it to queue it to avoid event
flood (5 secs). So don't init the QTime for last event, and then
check if it is null.

6 years agoI missunderstood how mkdtemp worked. Allocate a buffer duplicating
Duncan Mac-Vicar P [Thu, 31 Mar 2011 17:06:30 +0000 (19:06 +0200)]
I missunderstood how mkdtemp worked. Allocate a buffer duplicating
the template. Then free this buffer.

6 years ago- Use a full sync (without -path) the first time
Duncan Mac-Vicar P [Thu, 31 Mar 2011 06:19:04 +0000 (08:19 +0200)]
- Use a full sync (without -path) the first time
  unison is invoked
- disable -confirmbigdel

6 years agoadd testcases for unison
Duncan Mac-Vicar P [Wed, 30 Mar 2011 21:36:30 +0000 (23:36 +0200)]
add testcases for unison

6 years agoshow only a summary of subdirectories
Duncan Mac-Vicar P [Tue, 29 Mar 2011 20:23:42 +0000 (22:23 +0200)]
show only a summary of subdirectories

6 years ago* Missing brackets changed all logic around an 'if'
Duncan Mac-Vicar P [Mon, 28 Mar 2011 09:54:10 +0000 (11:54 +0200)]
* Missing brackets changed all logic around an 'if'
* Improve debug output

6 years agorefactor the notification timer in a new method
Duncan Mac-Vicar P [Sun, 27 Mar 2011 21:29:45 +0000 (23:29 +0200)]
refactor the notification timer in a new method
some debug messages cleanup

6 years agoWhen syncing, disable event notifier and start accumulating them
Duncan Mac-Vicar P [Sun, 27 Mar 2011 00:26:41 +0000 (01:26 +0100)]
When syncing, disable event notifier and start accumulating them
until the sync is done. When they are enabled again, a forced
event is scheduled to empty the queue.

6 years agosync process now runs, but no synchronization between sync processes
Duncan Mac-Vicar P [Fri, 25 Mar 2011 17:25:56 +0000 (18:25 +0100)]
sync process now runs, but no synchronization between sync processes

6 years agoMerge branch 'fix_inotify'
Duncan Mac-Vicar P [Tue, 22 Mar 2011 22:21:56 +0000 (23:21 +0100)]
Merge branch 'fix_inotify'

Conflicts:
src/mirall/folder.cpp
src/mirall/folder.h

6 years agoImplement an event queue: fix_inotify
Duncan Mac-Vicar P [Tue, 22 Mar 2011 22:03:43 +0000 (23:03 +0100)]
Implement an event queue:

- If FolderWatcher receives a inotify event in less than 5
  seconds from the last one, then the paths are queued and a timer
  is setup for 5 seconds more. New events are queued if a timer
  is running. The next event after the time gap is due will process
  the full path list

6 years agoThe unison folder class.
Duncan Mac-Vicar P [Sun, 20 Mar 2011 23:58:53 +0000 (00:58 +0100)]
The unison folder class.

May be factor it out in a external process tool folder type later.

6 years agomove the subfolder list function to FileUtils
Duncan Mac-Vicar P [Sun, 20 Mar 2011 21:43:03 +0000 (22:43 +0100)]
move the subfolder list function to FileUtils

6 years agoOnly fire folderChanged if > 2 seconds since last event
Duncan Mac-Vicar P [Sun, 20 Mar 2011 21:38:33 +0000 (22:38 +0100)]
Only fire folderChanged if > 2 seconds since last event

6 years agoadd accessor for root folder
Duncan Mac-Vicar P [Sun, 20 Mar 2011 21:18:38 +0000 (22:18 +0100)]
add accessor for root folder

6 years agoadd some documentation
Duncan Mac-Vicar P [Sun, 20 Mar 2011 21:17:23 +0000 (22:17 +0100)]
add some documentation

6 years agoMake the socket read loop more robust, and handle the EINVAL when
Duncan Mac-Vicar P [Sun, 20 Mar 2011 21:13:40 +0000 (22:13 +0100)]
Make the socket read loop more robust, and handle the EINVAL when
the read buffer is too small.

6 years ago- listen to the right events
Duncan Mac-Vicar P [Sat, 19 Mar 2011 20:18:43 +0000 (21:18 +0100)]
- listen to the right events
- rename inotify signal
- pass also the cookie

6 years ago- fix inotify/folderwatcher so that it uses full paths
Duncan Mac-Vicar P [Fri, 18 Mar 2011 12:54:32 +0000 (13:54 +0100)]
- fix inotify/folderwatcher so that it uses full paths
- make the test pass using QSignalSpy

6 years ago- introduce a tmp dir class and rm-rf util function
Duncan Mac-Vicar P [Fri, 18 Mar 2011 00:14:45 +0000 (01:14 +0100)]
- introduce a tmp dir class and rm-rf util function
- start a testcase for the folder watcher part

6 years agoMake the inotify interface work with multiple paths
Duncan Mac-Vicar P [Thu, 17 Mar 2011 06:13:30 +0000 (07:13 +0100)]
Make the inotify interface work with multiple paths

6 years agoInfrastructure for inotify. To replace QFileSystemWatcher, which, due
Duncan Mac-Vicar P [Wed, 16 Mar 2011 13:50:34 +0000 (14:50 +0100)]
Infrastructure for inotify. To replace QFileSystemWatcher, which, due
to a Qt bug, can't see modified files.
See http://qt.gitorious.org/qt/qt/merge_requests/2301

6 years agoreact to its own signals to set the icons
Duncan Mac-Vicar P [Thu, 17 Feb 2011 14:10:06 +0000 (15:10 +0100)]
react to its own signals to set the icons

6 years agofix defines
Duncan Mac-Vicar P [Thu, 17 Feb 2011 14:10:03 +0000 (15:10 +0100)]
fix defines

6 years agorename action to openAction to add also forgetAction and others later
Duncan Mac-Vicar P [Thu, 17 Feb 2011 10:27:05 +0000 (11:27 +0100)]
rename action to openAction to add also forgetAction and others later

6 years agofirst port to C++
Duncan Mac-Vicar P [Wed, 16 Feb 2011 23:21:45 +0000 (00:21 +0100)]
first port to C++