Re: [Evolution] Integration with syncevolution

2020-04-16 Thread Hamzeh Nasajpour
> only it's "evolution-data-server", not "service", but it's just a typo

Yes, you're right. ;)

As the last questions: 
1. The `syncevolution` is two-way synchronizing tools? I mean always we 
synchronize two things with each other. Remote to Local and Local to Remote. I 
want to say if I change the local store (ex: Write to locale store contact), so 
these changes will be applied to the remote?
 
2. As I said I have some C++ applications that should be able to working with 
the local store via APIs of `evolution-data-server`. In addition I should run 
some CLI commands for `configure`, `sync` and so on with `syncevolution` cli 
app. Is there any library for these acts that I can use them instead of running 
the CLI commands?


Regards,
Hamzeh
___
evolution-list mailing list
evolution-list@gnome.org
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list


Re: [Evolution] Integration with syncevolution

2020-04-16 Thread Hamzeh Nasajpour


> being this about Google services, you can avoid all of that and use
> libgdata to access Google data directly.

Google was only an example, maybe fastmail or any other online provider.

> You can also avoid syncevolution (it's an unnecessary overhead in your
> case, from my point of view), simply configure Google account either
> directly in Evolution, or in GNOME Online Accounts (where you can
> select what data should be synchronized). 

Generally, I have some limitations that I don't want to use `Evolution` or 
`GOA`. 

As a result: 
* I should install `syncevolution` and `evolution-data-service`.
* set-up it for synchronization - my Online account and local store.
* Access to the local store (Data: contact, calendar and ...) with APIs of 
`evolution-data-service` (`ECalClient`, `EBookClient`).

Right?


___
evolution-list mailing list
evolution-list@gnome.org
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list


Re: [Evolution] Integration with syncevolution

2020-04-16 Thread Hamzeh Nasajpour
Hi Milan,

Thank you for your quick reply.

In fact, I want to sync my online contacts (ex: Gmail contacts or ...) to 
local. Then I want to access to the local store for add/remove/edit/get 
contacts in local and again sync them. I need to do these acts 
(add/remove/edit/get) in my C++ applications.

So my components:
* syncevolution for syncing the remote data to the local store
* A middle layer for access to the local store (ex: read/write contacts)
* C++ Applications: they have access via this middle layer. 

And now: what's the middle layer? evolution-data-service? `libsyncevolution`? 
or any other library for access to local store?

Regards.
Hamzeh


On Thu, Apr 16, 2020, at 11:00 AM, Milan Crha via evolution-list wrote:
> On Thu, 2020-04-16 at 08:34 +0430, h.nasajp...@pantherx.org wrote:
> > I want to integrate my C++ applications with syncevolution via
> > `libsyncevolution` or `eds`?
> 
>   Hi,
> what do you mean with 'integrate', please? That's important, because
> syncevolution synchronizes remote data to local store, which is way
> different from accessing the data it synchronized.
> 
> > Is there any document about them? How to? Where? Example? 
> 
> Again, it depends on your use case. What kind of data do you want to
> access? Being it calendar related or address book related? Apart of
> reading developer documentation for EBookClient and/or ECalClient, you
> may find these links eventually helpful too:
> 
> https://wiki.gnome.org/Apps/Evolution/#Reference_Manuals (not that
> fresh as the developer documentation generated from the sources)
> 
> https://gitlab.gnome.org/GNOME/evolution-data-server/-/tree/master/src%2Fexamples
> 
> https://gitlab.gnome.org/GNOME/evolution-data-server/-/tree/master/tests
> 
>   Bye,
>   Milan
> 
> ___
> evolution-list mailing list
> evolution-list@gnome.org
> To change your list options or unsubscribe, visit ...
> https://mail.gnome.org/mailman/listinfo/evolution-list
>
___
evolution-list mailing list
evolution-list@gnome.org
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list


[Evolution] Basically question

2020-04-15 Thread Hamzeh Nasajpour
Hi guys,

I have a requirement like this:
* There are some applications (developed by myself) that need to store/retrieve 
the contacts.
* I need to sync these contacts with my online accounts, for example, Gmail or 
...
* I also should access to them locally as offline.

So I think `syncevolution` is a good solution for me. I can set-up it on my 
system for syncing the local DB with Gmail. But I want to know how can I 
interact with local DB for read/write/modify the contacts on my device. In 
fact, my applications should have access to DB for read/write/modify. Should I 
use the `evolution-data-server` or `libsyncevolution`? Which is better? or any 
help on this issue. Is there any document about this issue?

Regards,
Hamzeh
___
evolution-list mailing list
evolution-list@gnome.org
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list