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

    [
		NoInterfaceObject,
        Conditional=RMAI,
        JSGenerateToNativeObject,
    ] interface MOMVODService : MOMContentPagedList {

        readonly attribute boolean isBrowsable;
        [CustomGetter] readonly attribute boolean purchased;
        [CustomGetter] readonly attribute DOMString price;
        [CustomGetter] readonly attribute DOMString previewUri;
        [CustomGetter] readonly attribute long rentalPeriod;
        [CustomGetter] readonly attribute long purchaseDate;
        [CustomGetter] readonly attribute long expirationDate;
        [CustomGetter] readonly attribute long expiryDate;

        void connect( in MOMPlayer player, in optional long mode ) raises(MOMException);
        long purchase( in DOMString pin ) raises(MOMException);
        void cancel() raises(MOMException);
        [Custom] boolean isReady() raises(MOMException);
        MOMStringCollection lookupMetadata( in DOMString key );
    };
