gecko-dev/gfx2/public/nsISound.idl
2002-09-24 19:15:52 +00:00

46 lines
1.4 KiB
Plaintext

/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 2000 Netscape Communications Corporation.
* All Rights Reserved.
*
* Contributor(s):
* Stuart Parmenter <pavlov@netscape.com>
*/
#include "nsISupports.idl"
#include "nsIURL.idl"
// XXX look at this interface and make it not suck
[scriptable, uuid(359ccaa8-1dd2-11b2-858b-f22b02a616fc)] // zach's first uuid ;)
interface nsISoundService : nsISupports
{
void beep();
/* mute, etc? */
}
[scriptable, uuid(13ac207e-1dd2-11b2-8e43-c76b93faa99e)]
interface nsISoundFile : nsISupports
{
// seperate out play to take an nsISoundFile (which has things like stop, etc on it)
void init(in nsIURL aURL);
void play();
void stop();
};