On Fri, Mar 30, 2012 at 04:54:17PM -0500, [email protected] wrote:
> Hi Guys
>
> Thanks for the assistance in previous enquiries
>
> I have another issue that i desperately need help with. I am currently
> working on adding file transfer feature. From the smack documentation
> (http://www.igniterealtime.org/builds/smack/docs/latest/documentation/extensions/filetransfer.html)
>
> i need to do the following:
>
> FileTransferManager manager = new FileTransferManager(Connection
> arg0);
>
> // Create the outgoing file transfer
> OutgoingFileTransfer transfer =
> manager.createOutgoingFileTransfer("[email protected]");
>
> // Send the file
> transfer.sendFile(new File("shakespeare_complete_works.txt"),
> "You won't believe this!");
>
>
> How do i get the "Connection arg0" from the Beem Service. I need it
> the FileTransferManager constructor above. i want to add it in the
> Chat.java User Interface.
Beem is divided in two main parts :
- The BeemService and relative are in com.beem.project.beem.service
- The UserInterface activities and relative are in
com.beem.project.beem.ui
These are two separate entities with clear boundaries.
The goal of BeemService is to maintain the xmpp connection in the
background (not quite well actually, I admit). To do this it has full
access to the asmack classes.
In contrary, the UI part can only access the asmack classes by using a
specied set of interfaces. This set is mainly define in
com.beem.project.beem.service.aidl.
So you should implement the file transfer in the service, and extends
the set of interfaces (aidl) to expose your file transfer functionnality
to the user interface.
PS: you should send discussions about development to the mailing list
<[email protected]>. I put it in CC. You can register here
http://list.beem-project.com/mailman/listinfo/beem-dev
--
Da Risk
Beem Developer
http://www.beem-project.com
_______________________________________________
Beem-dev mailing list
[email protected]
http://list.beem-project.com/mailman/listinfo/beem-dev