/** @file MOMPackageEvent.idl
 *
 * Copyright (C) Espial Limited 2014 - Company confidential - All rights reserved.
 *
 */

    [
        Conditional=RMAI,
        JSGenerateToNativeObject
    ] interface MOMPackageEvent : MOMEvent {
        const unsigned short ADDED = 0;
        const unsigned short REMOVED = 1;
        const unsigned short CHANGED = 2;
        const unsigned short TERMINATE = 3;
        const unsigned short REQUEST_STORE = 4;
        const unsigned short REQUEST_DELETE = 5;
        const unsigned short STORED = 6;
        const unsigned short DELETED = 7;
        const unsigned short UPDATED = 8;
        const unsigned short STORAGE_FAILED = 9;
        const unsigned short UPDATE_FAILED = 10;
        const unsigned short DEFERRED = 11;
        const unsigned short LIST_UPDATED = 12;
        const unsigned short SERVICE_SELECTED = 13;
        const unsigned short STORING = 14;
        const unsigned short PROGRESS = 15;
        const unsigned short REASON_UNAVAILABLE = 0;
        const unsigned short REASON_INVALID = 1;
        const unsigned short REASON_NO_SPACE = 2;
        const unsigned short REASON_NOT_STORABLE = 3;
        const unsigned short REASON_NOT_AUTHORISED = 4;
        const unsigned short REASON_NATIVE_APP = 5;

        readonly attribute long code;
        readonly attribute MOMContentItem pkg;
        readonly attribute long reason;
        readonly attribute long progress;
        readonly attribute long length;


    };
