offline-editor-js/lib/edit/attachmentsStore.js
2014-04-09 18:10:35 +02:00

40 lines
696 B
JavaScript

"use strict"
define([], function()
{
var AttachmentsStore = function()
{
this.isSupported = function()
{
return true;
}
this.init = function()
{
console.log("init AttachmentStore");
}
/* what should the API be? */
// add new attachment to new feature
// add new attachment to existing feature
// delete new attachment from feature
// delete existing attachment (how do we know about it if we are offline?)
// get attachments of a feature (only those that we know about it)
this.add = function(attachmentId, attachmentFile)
{
}
this.get = function(attachmentId)
{
}
this.delete = function(attachmentId)
{
}
};
return AttachmentStore;
})