Project:Cloud Integration Export Plugin
Name:Saurabh M Patel
Email Address: firstname.lastname@example.org
FreeNode IRC Nick: saurabh_p
IM Service and Username: xmpp:gmail.com/Home, Username: saurabhpatel7717
Proposal Title: To develop a export plugin for cloud services DropBox and Google-Drive
Motivation for Proposal / Goal:
Motivation:In present world where cloud services are getting so popular among people and companies that everyone wants to use cloud services for their data storage so digiKam which is used for photos management should have a tool to export photos to cloud services.The major one being Dropbox and Google Drive so there has to be a export plugin for these cloud services.
Goals:To provide option to export photos to Dropbox and Google-Drive by providing options for it in ‘export’ tab of digiKam
There are many API’s available for Dropbox provided by Dropbox developers in many languages but not in Qt/C++ and since it would be difficult to integrate them with Qt so I after consulting with Smit Mehta decided to use Qt-Dropbox API provided by lycis i.e:lycis-qtdropbox. I was able to build the qtdropbox project on my local machine and then tried hand on exploring it.It’s a very active project with good response from their developers so I decided to use it in the project for Dropbox.
FlowChart of DropBox implementaion:
Since the API for dropbox is in Qt/C++ it would not be very difficult to integrate in the project and would be implemented in a similar way to that of other export plugins like facebook,picasa etc.
API provides method for login but it would have to be modified to meet digiKam’s needs since it opens a new tab in browser altogether for login so I would create a widget which would ask for login from within digiKam.
It’s interface would use foll. classes
After creating a interface I would create methods so that all images which are to be uploaded are saved in a queue and transferred one after another to upload method which would upload it to Dropbox
API provide methods to access Dropbox files so using it I would upload images to dropbox.
1. Uploading Widget
2. Login Widget
Above 2 pictures show most likely dialogs for login and uploading-widget which I discussed with Smit Mehta.
There are 5 buttons in navigation area in uploading widget image:
1.Move image up
2.Move image down
3. Add image
4. Remove image
5. Clear image-list
Tentative Timeline (in weekly intervals until 2 weeks after the end of GsoC):
Upto June17(pre-project research):Going through codes of various export plugins (I have gone through few already) which I have not went through till now. Also going thoroughly through lycis-QtDropbox API so as to use it more efficiently.Laying out the basic structure for plugins and making a stand-alone program for the project showing a demo of how the project would be implemented.
June17-June27(google drive widgets):First of all I will start coding with Google-drive part.I will start by making login-widget as shown in GUI mockup 2above for Google-Drive.Then I would use KIPI-Plugins classes to make an interface for uploading widget as shown in GUI mockup 1 and complete the uploading widget.
June28-9July(setting up images for upload):Start coding classes like Google_drive_image_item and Google_drive_image_list which would be helpful in setting images for uploading in proper manner.I would keep all images for uploading in a image-list(sort of queue) which would provide images to final stage-uploading.Also few other classes for providing help to image_item and image_list classes would be created as provided in other widgets like facebook, picasa, flickr etc.
July10-July21(coding uploading part):Start coding for uploading images.I would make a class google_drive_upload for handling all matters related to uploading.It would make use of image_item and image_list class to upload images to Google-drive using various classes of Qt to access Web since there is no API which provides direct method for uploading.
July22-July25(integrating plugin into digiKam):After testing the code I would start coding to create a option in export bar for uploading image to Google-Drive.
July26-July28:Reviewing the code and progress for upcoming midterm evaluation
July30-August10(Dropbox widgets):Start with implementaion of Dropbox plugin by laying out the basic structure. I will first start coding for login widget as shown in figure so that login can be done from within digikam instead of a new tab opening every time.Then I would use KIPI-Plugins classes to make an interface for uploading widget as shown in GUI mockup and complete the uploading widget.
August11-Aug22(setting up images for uploading):I will start to code for classes like dropbox_image_item and dropbox_image_list so that images are provided to uploading widget.Also other side-classes which would help the image_item and image_list class.Than I would do similar to Google-drive implementation and provide image_list to upload method which would then upload it.
August23-Aug27(exams in college):Only time during whole period I won’t be able to devote as much time as required.But I would compensate for that during regular period.
August28-September5(coding uploading part):Start coding for uploading class. Dropbox API provides a way to upload images to Dropbox so I would use that methods in a class dropbox_upload for uploading.Images would be provided from image_list class so that they can be uploaded to dropbox.
September6-Sept8(integrating plugin into digiKam):After testing the code I would start coding to create a option in export bar for uploading image to Dropbox.
September8-Sept10(test and review):Reviewing code by mentor and making changes suggested by mentor to plugins made.Also testing both the plugins.
Sept11-Sept16(testing and adding more features):Keep up doing testing and adding some more functionality like resizing images,feature of sharing with others on cloud services if time permits.
Sept16-Sept23(pencils down):Cleaning up the code,fixing bugs and write documentation.
September23:Firm ‘pencils down’ date
Sept23-Oct7(After GSOC):Effort to make export plugins for DropBox and Google-Drive feature available in next release of digiKam.
Do you have other obligations from late May to early August (school, work, vacation, etc.)? Please note that we expect the Summer of Code to be a full-time, 40-hr a week occupation. It is important to be clear and upfront about other commitments that you may have during that time.:
I will be free during entire summer period and would be able to devote full 40-hr a week.My college starts from July22, from then I will be able to work 5 hours a day everyday.Only I would not be able to devote much time from Aug23-Aug27 during which I have my exams in college but I would compensate for that during remaining period.
About Me (let us know who you are!):
I am Saurabh Patel living in Ahmedabad,Gujarat,India, sophomore studying Information and Communication Technology at Dhirubhai Ambani Institute Of Information and Communication Technology(DAIICT) at Gandhinagar,India.
I am working with linux for 2 years since joining college and am very much interested in programming.I have worked on creating a mini-shell and explicit-allocators in projects during college.
Also this year I contributed some patches for game based on Django(python web framework) while working with organization ‘mysociety’.
I have worked with version control system-git.
I have been using Qt since starting to this year and was inclined to work with KDE after attending KDE meetup-India which was held in my college.
Since then I have started working on digiKam and helped close them many bugs.I have discussed regarding implementation of my project with Smit Mehta and have been in contact with him regarding this project for over a month.
I plan to add export plugins for Dropbox and Google-Drive in next stable versions of digiKam as soon as possible.I plan to be active with digiKam community and do bug-fixing and maintaining my project even after GSOC.
Junior job link (provide a link to a small task in KDE that you have done. It is not mandatory but will increase your chances of getting accepted considerably. If you don’t know what to work on have a look at http://kde.org/jj or ask a mentor):
Following is the list of bugs I have worked on and closed mostly with the help of Gilles Caullier and Smit Mehta:
1. Bug : Flickr-Added a button with which list of sets on flickr get reset by clicking button instead of terminating digiKam.
2. Bug: Updated albumlist so that it shows albums in alphabetical order.
3. Bug: Submitted a patch which could be applied to git master but need to sort out HUNK errors.
4. Review request: Was assigned a task in category:Small projects to introduce students.It was basically for testing the patch and with digiKam2.9.0 it worked well but on trying with digiKam3.2.0 beta it fails so it is pending on that list.Also I have told Markus Leuthold(one who submitted patch) of the problem.Recently got modified patch from Markus which would close this bug.
5. Bug: Submitted a patch for batch-resize album to any directory but with help of Smit Mehta,Gilles Caulier found that the bug doesn’t exist any more and thus got it resolved.
6. Bug: Tested for the bug and helped it resolved.
7. Bug: Tested for the bug and helped it resolved.
8. TODO: In Picasa plugin’s Picasawebwindow class I informed Gilles about a TODO and he was fine with that solution and thus could be removed but Jens Muller-person who coded that part is not active in community anymore so TODO is not yet resolved.But this TODO could be resolved any-time as Gilles was fine with my views on TODO.