×

Discussion Board

Page 1 of 2 12 LastLast
Results 1 to 15 of 26
  1. #1
    Registered User
    Join Date
    Jan 2008
    Posts
    12

    Question MeeGo Sharing Framework plugin in Harmattan

    Hi

    I started to create a command line sharing plugin for Harmattan, mainly for uploading images via scp.

    I took this as a base:

    http://meego.gitorious.org/meego-sha...er/test-plugin

    But I didn't find good info about how to actually install it to the device. Is it enough to put the plugin to the /usr/lib/webupload/plugins directory or do I need to also add a service file for it? Should the plugin be an executable or a library?

    And how to install the plugin so that the Harmattan security framework allows executing it? I debianized it and guessed some Aegis commands to the debian/rules file and even though it didn't give any errors after some trial-and-errors, I still get denied when trying to execute it.


    Thanks.

  2. #2
    Nokia Developer Moderator
    Join Date
    Oct 2009
    Posts
    4,326

    Re: MeeGo Sharing Framework plugin in Harmattan

    Hi Tuomas!
    Quote Originally Posted by kulve View Post
    But I didn't find good info about how to actually install it to the device. Is it enough to put the plugin to the /usr/lib/webupload/plugins directory or do I need to also add a service file for it?
    Service file in /usr/share/accounts/services/ contains settings for webupload plugin, in principle it could be empty, but you then would need to set all these settings inside plugin.

    Quote Originally Posted by kulve View Post
    Should the plugin be an executable or a library?
    It's a library built on top of libwebupload0 library.

    Quote Originally Posted by kulve View Post
    And how to install the plugin so that the Harmattan security framework allows executing it? I debianized it and guessed some Aegis commands to the debian/rules file and even though it didn't give any errors after some trial-and-errors, I still get denied when trying to execute it.
    Placing binaries to Debian package should be enough, AFAIK, no need for extra Aegis credentials.

  3. #3
    Registered User
    Join Date
    Aug 2011
    Posts
    17

    Re: MeeGo Sharing Framework plugin in Harmattan

    Daniil, you are wrong here.

    Webupload plugins are executables, they run as separate processes.
    RM680-22-6_PR_RM680:~# readelf -h /usr/lib/webupload/plugins/facebook |grep Type
    Type: EXEC (Executable file)

    Here is more or less working (missing .pro files) example of real world sharing service for Dropbox: http://meego.gitorious.org/meego-sha.../pages/Dropbox

  4. #4
    Registered User
    Join Date
    Jan 2008
    Posts
    12

    Thumbs up Re: MeeGo Sharing Framework plugin in Harmattan

    I couldn't get the Aegis to approve my plugin so for now I just disabled the whole thing

    I didn't get the plugin visible to the Accounts UI by just installing the plugin to /usr/lib/webupload/plugins/. Next I tried adding the service file to /usr/share/accounts/services but without success. But when I added a provider file to /usr/share/accounts/providers I got my plugin visible in the UI.

    Now I need to add the real settings and the actual content to my plugin

    Thanks for your help.

  5. #5
    Registered User
    Join Date
    Jan 2008
    Posts
    12

    Re: MeeGo Sharing Framework plugin in Harmattan

    How do I configure what the Account setup asks? It seems to ask for username and password by default and for me just the command line string would be enough.

    Almost all of the accounts have a plugin in /usr/lib/AccountSetup/. Are those explained somewhere?

    Thanks.

  6. #6
    Registered User
    Join Date
    Aug 2011
    Posts
    17

    Re: MeeGo Sharing Framework plugin in Harmattan

    Read http://meego.gitorious.org/meego-sha.../pages/Dropbox, it is (almost) full-featured example -- it includes signon, accounts, and web-upload parts of DropBox sharing.

  7. #7
    Registered User
    Join Date
    Dec 2010
    Posts
    41

    Re: MeeGo Sharing Framework plugin in Harmattan

    The best thing of this example is Accounts/SSO part. The documentation is lacking. Please someone guide me to get a full featured accounts and SSO service could be consumable from 3rd party app. I wish the promises from here: https://www.developer.nokia.com/swip.../Accounts.html could be realized. Thanks!

  8. #8
    Registered User
    Join Date
    Jan 2008
    Posts
    12

    Re: MeeGo Sharing Framework plugin in Harmattan

    Quote Originally Posted by bokovoy View Post
    Read http://meego.gitorious.org/meego-sha.../pages/Dropbox, it is (almost) full-featured example -- it includes signon, accounts, and web-upload parts of DropBox sharing.
    Would it be possible to actually finish that, so it would be a working example instead of "almost" working? Now it's missing some source files and the build files which makes it a bit bad example. And add the files to Git instead of cut'n'pasting them to a wiki page?

    Thanks.

  9. #9
    Registered User
    Join Date
    Oct 2011
    Posts
    3

    Re: MeeGo Sharing Framework plugin in Harmattan

    Hi Tuomas,
    you also probably want to have the account being configurable from the "Accounts" application. In order to do so, the first step is to create a .provider XML file, which must be installed in /usr/share/accounts/providers/. You can see the other files in that directory to understand what's the format of the file. This file is used by libaccounts-glib (to get the basic informations such as provider name and icon) and libaccounts-ui for the account configuration. You will also need a .service file in /usr/share/accounts/services/, which will use the new provider.
    libaccounts-ui provides a set of classes to create plugins for the Accounts application, and also a binary (which IIRC is called genericplugin) which builds the configuration UI based on the elements found in the .provider and .service files. You might find that this is enough for your needs -- if it isn't, you'll have to create a plugin yourself, named /usr/lib/AccountSetup/<provider name>plugin. You can reuse classes from libaccounts-ui, and just subclass those classes whose behaviour you need to change. If you want to make a pure Qt/QML plugin (and not use libMeegoTouch) then you cannot use libaccounts-ui, but libaccountsetup (which only takes care of the IPC between the Accounts application and the plugin.

    Unfortunately I cannot answer your other questions, as I don't know almost anything about the sharing framework.

  10. #10
    Registered User
    Join Date
    Jan 2008
    Posts
    12

    Re: MeeGo Sharing Framework plugin in Harmattan

    Quote Originally Posted by mardy View Post
    you also probably want to have the account being configurable from the "Accounts" application.
    I would think so, yes.

    Quote Originally Posted by mardy View Post
    In order to do so, the first step is to create a .provider XML file, which must be installed in /usr/share/accounts/providers/. You can see the other files in that directory to understand what's the format of the file.
    I have that file but I'm really unsure about the content. I've tried to mimic the other files there but the changes don't seem to have any effect in the UI.

    Quote Originally Posted by mardy View Post
    You will also need a .service file in /usr/share/accounts/services/, which will use the new provider.
    I have this one as well. Again with mimiced content.

    Quote Originally Posted by mardy View Post
    libaccounts-ui provides a set of classes to create plugins for the Accounts application, and also a binary (which IIRC is called genericplugin) which builds the configuration UI based on the elements found in the .provider and .service files. You might find that this is enough for your needs
    The generic plugin could be enough. At least I would like to get something working with that first to see how far I can get with that.

    Could you provide a bit more specific instructions or pointers related to the service and provide files?

    Thank you.

  11. #11
    Registered User
    Join Date
    Oct 2011
    Posts
    3

    Re: MeeGo Sharing Framework plugin in Harmattan

    Hi kulve,

    I'm basically trying to find out the same stuff. I don't have anything working yet, but hope this helps a bit. This is what I've gathered this far:

    - Service description: /usr/share/accounts/services/footest-share.service
    - Service plugin binary: /usr/lib/webupload/plugins/footest
    - Provider description: /usr/share/accounts/providers/footest.provider
    - Auth plugin command: /usr/lib/AccountSetup/footestplugin
    - Auth plugin binary: /usr/lib/AccountSetup/footestplugin/bin/footestplugin

    Both plugin dummy binaries build fine with Harmattan Platform API (note that you may need to change the SDK paths in .pro).

    The provider description brings a dummy entry to the sharing accounts setup screen. Clicking it doesn't do anything -- I assume this means it's actually trying to load the dummy auth plugin since changing the auth plugin command to point to e.g. "googleplugin" shows the Google services auth ui. Furthermore, I assume that a sharing service entry would become visible after a successful authentication.

    I've been trying to find this out using the existing service files and the Dropbox example skeleton. I'll continue with this when I have more time. I'll gladly accept any insights and documentation!

    Edit: Reading your message second time, I guess you already had all this figured out. Hope this helps someone anyway!
    Last edited by aspoikel; 2011-11-07 at 23:21.

  12. #12
    Registered User
    Join Date
    Aug 2011
    Posts
    17

    Re: MeeGo Sharing Framework plugin in Harmattan

    Quote Originally Posted by kulve View Post
    Would it be possible to actually finish that, so it would be a working example instead of "almost" working? Now it's missing some source files and the build files which makes it a bit bad example. And add the files to Git instead of cut'n'pasting them to a wiki page?
    Thanks.
    You may ask about that developers directly on gitorious by sending a message to active sharing framework developers: http://meego.gitorious.org/meego-sharing-framework/ -- press on the name and on a developer's page you'll find "send message" button.

  13. #13
    Registered User
    Join Date
    Oct 2011
    Posts
    3

    Re: MeeGo Sharing Framework plugin in Harmattan

    Has anyone been able to get an auth plugin to load? I'm encountering errors "Booster: Loading invoked application failed: '/usr/lib/AccountSetup/bin/footestplugin: undefined symbol: _ZTI19AuthPluginInterface'".

    I'm linking against libs "signon-qt" and "signon-plugins", should there be something in addition to these?

  14. #14
    Registered User
    Join Date
    Oct 2011
    Posts
    3

    Re: MeeGo Sharing Framework plugin in Harmattan

    To answer myself: the auth plugin is supposed to go to /usr/lib/signon/libfootestplugin.so, not to /usr/lib/AccountSetup. The account setup UI loads fine when the plugin is in its correct location.

  15. #15
    Registered User
    Join Date
    Jan 2008
    Posts
    12

    Re: MeeGo Sharing Framework plugin in Harmattan

    Hi aspoikel,

    So, did you manage to get this thing working in your project? Have you published your source code somewhere?

    Thanks.

Page 1 of 2 12 LastLast

Similar Threads

  1. Accessing ShareUI on Harmattan/MeeGo ?
    By mac1ej in forum Nokia N9
    Replies: 34
    Last Post: 2012-03-23, 02:49
  2. QtComponents with MeeGo Harmattan problem - InfoBanner
    By molbal in forum [Archived] Qt Quick
    Replies: 3
    Last Post: 2011-08-02, 19:41
  3. Replies: 6
    Last Post: 2011-07-23, 14:41
  4. Sources of Widgets Galleries for MeeGo 1.2 Harmattan
    By svlasov in forum [Archived] Qt SDKs and Tools
    Replies: 0
    Last Post: 2011-07-07, 13:03
  5. How to create a file sharing plugin?
    By mlohse in forum Symbian C++
    Replies: 3
    Last Post: 2011-02-01, 02:26

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •