2012-05-22 11:42:59 -05:00
|
|
|
* Interface to Telepathy Tubes.
|
2012-03-16 16:14:54 -05:00
|
|
|
|
2012-03-16 17:49:18 -05:00
|
|
|
The idea is to provide 1-1 collaboration between contacts and many-many
|
|
|
|
collaboration via MUCs, using Telepathy DBus Tubes over Jabber/XMPP.
|
|
|
|
|
2012-03-16 16:14:54 -05:00
|
|
|
To enable configure LibO with --enable-telepathy
|
|
|
|
|
2012-04-14 06:06:29 -05:00
|
|
|
Currently (2012-04-14) at least telepathy-glib 0.18 is needed, which doesn't
|
|
|
|
come with distributions. Download it from
|
|
|
|
http://telepathy.freedesktop.org/releases/telepathy-glib/
|
|
|
|
and make install it locally, e.g. with --prefix=$HOME/usr
|
|
|
|
For LibO configure then use PKG_CONFIG_PATH="$HOME/usr/lib/pkgconfig
|
|
|
|
To not have tubes and sc cppunittests stumble (LD_LIBRARY_PATH is not evaluated
|
|
|
|
in unit tests and thus not a solution) copy the libs to the solver, i.e.
|
|
|
|
cp -p $HOME/usr/lib/libtelepathy-glib.* $SRCDIR/solver/$INPATH/lib/
|
|
|
|
|
2012-03-21 13:38:27 -05:00
|
|
|
If you have a Telepathy-enabled LibreOffice installed to /usr (including
|
|
|
|
liboapprover) you may also want to install the .service and .client files to
|
2012-08-20 10:28:46 -05:00
|
|
|
make everything service-activatable. Currently this does not seem to work.
|
2012-03-21 13:38:27 -05:00
|
|
|
|
|
|
|
mkdir -p $HOME/.local/share/telepathy/clients
|
|
|
|
ln -s $PWD/tubes/LibreOffice.client \
|
|
|
|
$PWD/tubes/LibreOfficeApprover.client \
|
|
|
|
$HOME/.local/share/telepathy/clients
|
|
|
|
|
|
|
|
mkdir -p $HOME/.local/share/dbus-1/services
|
|
|
|
ln -s $PWD/tubes/org.freedesktop.Telepathy.Client.LibreOfficeApprover.service \
|
|
|
|
$PWD/tubes/org.freedesktop.Telepathy.Client.LibreOffice.service \
|
|
|
|
$HOME/.local/share/dbus-1/services
|
|
|
|
|
2012-05-22 11:42:59 -05:00
|
|
|
|
2012-08-20 10:28:46 -05:00
|
|
|
* liboapprover
|
2012-05-22 11:42:59 -05:00
|
|
|
|
2012-08-20 10:28:46 -05:00
|
|
|
You may run it in the background. When someone wants to collaborate with you,
|
|
|
|
you then get a confirmation dialog.
|
2012-05-22 11:42:59 -05:00
|
|
|
|
2012-08-20 10:28:46 -05:00
|
|
|
* Demo modes
|
2012-05-22 11:42:59 -05:00
|
|
|
|
2012-08-20 10:28:46 -05:00
|
|
|
To play with the interposing without having an online account connected, create
|
|
|
|
a bit of a document, go to File -> Collaboration -> startDemoSession and bingo.
|
2012-05-22 11:42:59 -05:00
|
|
|
|
2012-03-23 11:01:00 -05:00
|
|
|
|
|
|
|
* To do interesting things with this code build and run calc thus:
|
|
|
|
|
2012-08-20 10:28:46 -05:00
|
|
|
SAL_LOG=1 ./soffice --calc
|
2012-03-23 11:01:00 -05:00
|
|
|
|
2012-08-20 10:28:46 -05:00
|
|
|
Now type simple strings into cells, rename sheets, or go to
|
|
|
|
File -> Collaboration; Listen; startBuddySession;
|
|
|
|
to transfer your document as-is to the other side ...
|
2012-03-23 11:01:00 -05:00
|
|
|
|
|
|
|
|
2012-03-16 16:14:54 -05:00
|
|
|
* for the cppunittest needed:
|
2012-03-22 06:22:44 -05:00
|
|
|
* Configure two Jabber accounts in Empathy
|
|
|
|
* Both must be online and on each other's contact list
|
|
|
|
* Copy qa/test-config.ini.example to qa/test-config.ini, and specify those
|
|
|
|
two accounts' JIDs in it.
|
2012-03-16 16:14:54 -05:00
|
|
|
|
2012-03-20 14:24:33 -05:00
|
|
|
|
2012-08-20 10:28:46 -05:00
|
|
|
* TODOs:
|
2012-03-16 17:49:18 -05:00
|
|
|
|
2012-08-20 10:28:46 -05:00
|
|
|
* TeleConference is not deleted anywhere
|
2012-03-16 17:49:18 -05:00
|
|
|
* dialog to pick own account
|
|
|
|
* dialog to pick contact or MUC to work with
|
|
|
|
* dialog to accept/reject collaboration requests
|
2012-08-20 10:28:46 -05:00
|
|
|
* make the .service and .client files work reliably
|
2012-03-16 17:49:18 -05:00
|
|
|
|
|
|
|
|
|
|
|
In applications, e.g. Calc:
|
|
|
|
|
|
|
|
* stricter model,view,controller
|
|
|
|
* disable all actions we cannot process collaboratively
|
|
|
|
* separate input from view
|
|
|
|
* preprocess input to determine data type (text, number, date, ...)
|
|
|
|
* send typed/categorized data over wire before actually processing in model
|
|
|
|
* process serialized input as received
|
|
|
|
* Calc specific:
|
|
|
|
* use existing shared document feature with change-tracking enabled to
|
|
|
|
visualize changes
|
|
|
|
* may have the benefit of having already only a subset of trackable change
|
|
|
|
actions available
|
|
|
|
* let ScDocFunc handle also received changes
|
|
|
|
* have dialogs send their result item sets over the wire
|