Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
[nemo-transfer-engine] Initial commit. Files added to the git repo.
- Loading branch information
Marko Mattila
committed
Apr 10, 2013
0 parents
commit a0fbc2b
Showing
86 changed files
with
10,094 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
Nemo Transfer Engine | ||
|
||
Simple engine for keeping track of transfers (sync, download, upload) and providing plugin mechanism for | ||
share plugins. | ||
|
||
Transfer engine provides D-Bus API for managing the database and querying transfer information. | ||
|
||
Building: | ||
|
||
qmake | ||
make | ||
|
||
Generating Docs: | ||
make sure qdoc3 is installed and run: | ||
|
||
make docs | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[D-BUS Service] | ||
Interface=/org/nemo/transferengine | ||
Name=org.nemo.transferengine | ||
Exec=/usr/bin/nemo-transfer-engine |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,122 @@ | ||
<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN" | ||
"http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd"> | ||
|
||
<node name="/org/nemo/transferengine"> | ||
<interface name="org.nemo.transferengine"> | ||
|
||
# Share API | ||
<method name="uploadMediaItem"> | ||
<arg direction="in" type="s" name="source"/> | ||
<arg direction="in" type="s" name="serviceId"/> | ||
<arg direction="in" type="s" name="mimeType"/> | ||
<arg direction="in" type="b" name="metadataStripped"/> | ||
<arg direction="in" type="a{sv}" name="userData" /> | ||
<arg direction="out" type="i" name="transferId"/> | ||
<annotation name="org.qtproject.QtDBus.QtTypeName.In4" value="QVariantMap"/> | ||
</method> | ||
<method name="uploadMediaItemContent"> | ||
<arg direction="in" type="a{sv}" name="content" /> | ||
<arg direction="in" type="s" name="serviceId"/> | ||
<arg direction="in" type="a{sv}" name="userData" /> | ||
<arg direction="out" type="i" name="transferId"/> | ||
<annotation name="org.qtproject.QtDBus.QtTypeName.In0" value="QVariantMap"/> | ||
<annotation name="org.qtproject.QtDBus.QtTypeName.In2" value="QVariantMap"/> | ||
</method> | ||
|
||
# create Sync Entry | ||
<method name="createSync"> | ||
<arg direction="in" type="s" name="displayName"/> | ||
<arg direction="in" type="s" name="applicationIcon"/> | ||
<arg direction="in" type="s" name="serviceIcon"/> | ||
<arg direction="in" type="as" name="callback"/> | ||
<arg direction="in" type="s" name="cancelMethod"/> | ||
<arg direction="in" type="s" name="restartMethod"/> | ||
<arg direction="out" type="i" name="transferId"/> | ||
</method> | ||
|
||
# create Download entry | ||
<method name="createDownload"> | ||
<arg direction="in" type="s" name="displayName"/> | ||
<arg direction="in" type="s" name="applicationIcon"/> | ||
<arg direction="in" type="s" name="serviceIcon"/> | ||
<arg direction="in" type="s" name="filePath"/> | ||
<arg direction="in" type="s" name="mimeType"/> | ||
<arg direction="in" type="x" name="expectedFileSize"/> | ||
<arg direction="in" type="as" name="callback"/> | ||
<arg direction="in" type="s" name="cancelMethod"/> | ||
<arg direction="in" type="s" name="restartMethod"/> | ||
<arg direction="out" type="i" name="transferId"/> | ||
</method> | ||
|
||
# API for updating either download or sync | ||
<method name="updateTransferProgress"> | ||
<arg direction="in" type="i" name="transferId"/> | ||
<arg direction="in" type="d" name="progress"/> | ||
</method> | ||
|
||
# Mark specific upload or a sync as started. | ||
<method name="startTransfer"> | ||
<arg direction="in" type="i" name="transferId"/> | ||
</method> | ||
|
||
# Restart upload or a sync | ||
<method name="restartTransfer"> | ||
<arg direction="in" type="i" name="transferId"/> | ||
</method> | ||
|
||
# Mark a specific upload or a sync transfer as finished | ||
# if success == false, then the reason for failure should | ||
# be set to human readable message | ||
<method name="finishTransfer"> | ||
<arg direction="in" type="i" name="transferId"/> | ||
<arg direction="in" type="i" name="transferStatus"/> | ||
<arg direction="in" type="s" name="reason"/> | ||
</method> | ||
|
||
# Get a list of transfers | ||
<method name="transfers"> | ||
<arg name="records" type="a(iidss)" direction="out" /> | ||
<annotation name="org.qtproject.QtDBus.QtTypeName.Out0" value="QList < TransferDBRecord > "/> | ||
</method> | ||
|
||
# Get a list of transfer methods such as FB, Twitter, BT, NFC, etc | ||
<method name="transferMethods"> | ||
<arg name="methods" type="a(ssssasi)" direction="out" /> | ||
<annotation name="org.qtproject.QtDBus.QtTypeName.Out0" value="QList < TransferMethodInfo > "/> | ||
</method> | ||
|
||
# clear all unfinished transfers | ||
<method name="clearTransfers" /> | ||
|
||
# cancel a specific transfer | ||
<method name="cancelTransfer"> | ||
<arg name="transferId" type="i" direction="in"/> | ||
</method> | ||
|
||
# enable or disable notifications | ||
<method name="enableNotifications"> | ||
<arg name="enable" type="b" direction="in"/> | ||
</method> | ||
|
||
# Query if notifications are enabled | ||
<method name="notificationsEnabled"> | ||
<arg name="enabled" type="b" direction="out"/> | ||
</method> | ||
|
||
# Signals for indicating changes in transfers | ||
<signal name="progressChanged"> | ||
<arg name="transferId" type="i" direction="out"/> | ||
<arg name="progress" type="d" direction="out"/> | ||
</signal> | ||
|
||
<signal name="statusChanged"> | ||
<arg name="transferId" type="i" direction="out"/> | ||
<arg name="status" type="i" direction="out"/> | ||
</signal> | ||
|
||
<signal name="transfersChanged" /> | ||
|
||
<signal name="transferMethodListChanged" /> | ||
</interface> | ||
</node> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#alias.i = e | ||
alias.include = input | ||
|
||
macro.0 = "\\\\0" | ||
macro.b = "\\\\b" | ||
macro.n = "\\\\n" | ||
macro.r = "\\\\r" | ||
#macro.i = "\\o" | ||
macro.i11 = "\\o{1,1}" | ||
macro.i12 = "\\o{1,2}" | ||
macro.i13 = "\\o{1,3}" | ||
macro.i14 = "\\o{1,4}" | ||
macro.i15 = "\\o{1,5}" | ||
macro.i16 = "\\o{1,6}" | ||
macro.i17 = "\\o{1,7}" | ||
macro.i18 = "\\o{1,8}" | ||
macro.i19 = "\\o{1,9}" | ||
macro.i21 = "\\o{2,1}" | ||
macro.i31 = "\\o{3,1}" | ||
macro.i41 = "\\o{4,1}" | ||
macro.i51 = "\\o{5,1}" | ||
macro.i61 = "\\o{6,1}" | ||
macro.i71 = "\\o{7,1}" | ||
macro.i81 = "\\o{8,1}" | ||
macro.i91 = "\\o{9,1}" | ||
macro.img = "\\image" | ||
macro.endquote = "\\endquotation" | ||
macro.relatesto = "\\relates" | ||
|
||
spurious = "Missing comma in .*" \ | ||
"Missing pattern .*" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#alias.i = e | ||
alias.include = input | ||
|
||
macro.0 = "\\\\0" | ||
macro.b = "\\\\b" | ||
macro.n = "\\\\n" | ||
macro.r = "\\\\r" | ||
#macro.i = "\\o" | ||
macro.i11 = "\\o{1,1}" | ||
macro.i12 = "\\o{1,2}" | ||
macro.i13 = "\\o{1,3}" | ||
macro.i14 = "\\o{1,4}" | ||
macro.i15 = "\\o{1,5}" | ||
macro.i16 = "\\o{1,6}" | ||
macro.i17 = "\\o{1,7}" | ||
macro.i18 = "\\o{1,8}" | ||
macro.i19 = "\\o{1,9}" | ||
macro.i21 = "\\o{2,1}" | ||
macro.i31 = "\\o{3,1}" | ||
macro.i41 = "\\o{4,1}" | ||
macro.i51 = "\\o{5,1}" | ||
macro.i61 = "\\o{6,1}" | ||
macro.i71 = "\\o{7,1}" | ||
macro.i81 = "\\o{8,1}" | ||
macro.i91 = "\\o{9,1}" | ||
macro.img = "\\image" | ||
macro.endquote = "\\endquotation" | ||
macro.relatesto = "\\relates" | ||
|
||
spurious = "Missing comma in .*" \ | ||
"Missing pattern .*" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[Dolphin] | ||
PreviewsShown=true | ||
Timestamp=2012,12,12,16,59,29 |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
macro.aacute.HTML = "á" | ||
macro.Aring.HTML = "Å" | ||
macro.aring.HTML = "å" | ||
macro.Auml.HTML = "Ä" | ||
macro.author = "\\bold{Author:}" | ||
macro.br.HTML = "<br />" | ||
macro.BR.HTML = "<br />" | ||
macro.copyright.HTML = "©" | ||
macro.eacute.HTML = "é" | ||
macro.gui = "\\bold" | ||
macro.hr.HTML = "<hr />" | ||
macro.iacute.HTML = "í" | ||
macro.key = "\\bold" | ||
macro.menu = "\\bold" | ||
macro.note = "\\bold{Note:}" | ||
macro.oslash.HTML = "ø" | ||
macro.ouml.HTML = "ö" | ||
macro.QA = "\\e{Qt Assistant}" | ||
macro.QD = "\\e{Qt Designer}" | ||
macro.QL = "\\e{Qt Linguist}" | ||
macro.QQV = "\\e{Qt QML Viewer}" | ||
macro.param = "\\e" | ||
macro.raisedaster.HTML = "<sup>*</sup>" | ||
macro.rarrow.HTML = "→" | ||
macro.reg.HTML = "<sup>®</sup>" | ||
macro.return = "Returns" | ||
macro.starslash = "\\c{*/}" | ||
macro.begincomment = "\\c{/*}" | ||
macro.endcomment = "\\c{*/}" | ||
macro.uuml.HTML = "ü" | ||
macro.mdash.HTML = "—" | ||
|
||
macro.beginfloatleft.HTML = "<div style=\"float: left; margin-right: 2em\">" | ||
macro.beginfloatright.HTML = "<div style=\"float: right; margin-left: 2em\">" | ||
macro.endfloat.HTML = "</div>" | ||
macro.clearfloat.HTML = "<br style=\"clear: both\" />" | ||
macro.emptyspan.HTML = "<span></span>" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
Cpp.ignoretokens = QAXFACTORY_EXPORT \ | ||
QDESIGNER_COMPONENTS_LIBRARY \ | ||
QDESIGNER_EXTENSION_LIBRARY \ | ||
QDESIGNER_SDK_LIBRARY \ | ||
QDESIGNER_SHARED_LIBRARY \ | ||
QDESIGNER_UILIB_LIBRARY \ | ||
QM_EXPORT_CANVAS \ | ||
QM_EXPORT_DNS \ | ||
QM_EXPORT_DOM \ | ||
QM_EXPORT_FTP \ | ||
QM_EXPORT_HTTP \ | ||
QM_EXPORT_ICONVIEW \ | ||
QM_EXPORT_NETWORK \ | ||
QM_EXPORT_OPENGL \ | ||
QM_EXPORT_OPENVG \ | ||
QM_EXPORT_SQL \ | ||
QM_EXPORT_TABLE \ | ||
QM_EXPORT_WORKSPACE \ | ||
QM_EXPORT_XML \ | ||
QT_ASCII_CAST_WARN \ | ||
QT_ASCII_CAST_WARN_CONSTRUCTOR \ | ||
QT_BEGIN_HEADER \ | ||
QT_DESIGNER_STATIC \ | ||
QT_END_HEADER \ | ||
QT_FASTCALL \ | ||
QT_WIDGET_PLUGIN_EXPORT \ | ||
Q_COMPAT_EXPORT \ | ||
Q_CORE_EXPORT \ | ||
Q_CORE_EXPORT_INLINE \ | ||
Q_EXPLICIT \ | ||
Q_EXPORT \ | ||
Q_EXPORT_CODECS_CN \ | ||
Q_EXPORT_CODECS_JP \ | ||
Q_EXPORT_CODECS_KR \ | ||
Q_EXPORT_PLUGIN \ | ||
Q_GFX_INLINE \ | ||
Q_AUTOTEST_EXPORT \ | ||
QM_AUTOTEST_EXPORT \ | ||
Q_GUI_EXPORT \ | ||
Q_GUI_EXPORT_INLINE \ | ||
Q_GUI_EXPORT_STYLE_CDE \ | ||
Q_GUI_EXPORT_STYLE_COMPACT \ | ||
Q_GUI_EXPORT_STYLE_MAC \ | ||
Q_GUI_EXPORT_STYLE_MOTIF \ | ||
Q_GUI_EXPORT_STYLE_MOTIFPLUS \ | ||
Q_GUI_EXPORT_STYLE_PLATINUM \ | ||
Q_GUI_EXPORT_STYLE_POCKETPC \ | ||
Q_GUI_EXPORT_STYLE_SGI \ | ||
Q_GUI_EXPORT_STYLE_WINDOWS \ | ||
Q_GUI_EXPORT_STYLE_WINDOWSXP \ | ||
QHELP_EXPORT \ | ||
Q_INLINE_TEMPLATE \ | ||
Q_INTERNAL_WIN_NO_THROW \ | ||
Q_NETWORK_EXPORT \ | ||
Q_OPENGL_EXPORT \ | ||
Q_OPENVG_EXPORT \ | ||
Q_OUTOFLINE_TEMPLATE \ | ||
Q_SQL_EXPORT \ | ||
Q_SVG_EXPORT \ | ||
Q_SCRIPT_EXPORT \ | ||
Q_SCRIPTTOOLS_EXPORT \ | ||
Q_TESTLIB_EXPORT \ | ||
Q_TYPENAME \ | ||
Q_XML_EXPORT \ | ||
Q_XMLSTREAM_EXPORT \ | ||
Q_XMLPATTERNS_EXPORT \ | ||
QDBUS_EXPORT \ | ||
Q_DBUS_EXPORT \ | ||
QT_BEGIN_NAMESPACE \ | ||
QT_BEGIN_INCLUDE_NAMESPACE \ | ||
QT_END_NAMESPACE \ | ||
QT_END_INCLUDE_NAMESPACE \ | ||
PHONON_EXPORT \ | ||
Q_DECLARATIVE_EXPORT \ | ||
Q_GADGET \ | ||
QWEBKIT_EXPORT \ | ||
Q_INVOKABLE | ||
Cpp.ignoredirectives = Q_DECLARE_HANDLE \ | ||
Q_DECLARE_INTERFACE \ | ||
Q_DECLARE_METATYPE \ | ||
Q_DECLARE_OPERATORS_FOR_FLAGS \ | ||
Q_DECLARE_PRIVATE \ | ||
Q_DECLARE_PUBLIC \ | ||
Q_DECLARE_SHARED \ | ||
Q_DECLARE_TR_FUNCTIONS \ | ||
Q_DECLARE_TYPEINFO \ | ||
Q_DISABLE_COPY \ | ||
QT_FORWARD_DECLARE_CLASS \ | ||
Q_DUMMY_COMPARISON_OPERATOR \ | ||
Q_ENUMS \ | ||
Q_FLAGS \ | ||
Q_INTERFACES \ | ||
__attribute__ \ | ||
K_DECLARE_PRIVATE \ | ||
PHONON_OBJECT \ | ||
PHONON_HEIR \ | ||
Q_PRIVATE_PROPERTY \ | ||
Q_DECLARE_PRIVATE_D \ | ||
Q_CLASSINFO |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
defines = Q_QDOC \ | ||
QT_.*_SUPPORT \ | ||
QT_.*_LIB \ | ||
QT_COMPAT \ | ||
QT_KEYPAD_NAVIGATION \ | ||
QT_NO_EGL \ | ||
QT3_SUPPORT \ | ||
Q_WS_.* \ | ||
Q_OS_.* \ | ||
Q_BYTE_ORDER \ | ||
QT_DEPRECATED \ | ||
Q_NO_USING_KEYWORD \ | ||
__cplusplus | ||
|
||
versionsym = QT_VERSION_STR | ||
|
||
codeindent = 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Define the location of the templates to use. Style sheets and scripts are | ||
# specified relative to the template directory and will be copied into | ||
# subdirectories of the output directory. | ||
|
||
HTML.templatedir = . | ||
|
||
HTML.stylesheets = style/offline.css | ||
|
||
HTML.scripts = | ||
|
||
# Files not referenced in any qdoc file | ||
extraimages.HTML = breadcrumb.png \ | ||
bullet_gt.png \ | ||
bullet_dn.png \ | ||
bullet_sq.png \ | ||
bullet_up.png | ||
|
||
# Include the style sheets and scripts used. | ||
|
||
HTML.headerstyles = \ | ||
" <link rel=\"stylesheet\" type=\"text/css\" href=\"style/offline.css\" />\n" | ||
|
||
HTML.headerscripts = | ||
|
||
HTML.endheader = \ | ||
"</head>\n" \ | ||
"<body>\n" |
Oops, something went wrong.