equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2005 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: This class is invoked when MMA event source is created. |
|
15 * |
|
16 */ |
|
17 |
|
18 package com.nokia.amms; |
|
19 |
|
20 import com.nokia.microedition.media.ManagerImpl; |
|
21 import com.nokia.microedition.media.MMAInvokeListener; |
|
22 |
|
23 /** |
|
24 * This class will be created and invoked when MMA event source is created. |
|
25 */ |
|
26 public class MMAInvokeListenerImpl implements MMAInvokeListener |
|
27 { |
|
28 /** |
|
29 * Public empty constructor to used from MMA. |
|
30 */ |
|
31 public MMAInvokeListenerImpl() |
|
32 { |
|
33 } |
|
34 |
|
35 /** |
|
36 * From MMAInvokeListener. Invokes GlobalManager and adds AMMSPlugin to |
|
37 * the MMA Manager. |
|
38 * @param aEventSourceHandle Handle to native MMA event source. |
|
39 */ |
|
40 public void notifyInvoke(int aEventSourceHandle) |
|
41 { |
|
42 // Create GlobalManagerImpl static instance. |
|
43 GlobalManagerImpl.invoke(aEventSourceHandle); |
|
44 |
|
45 // Add AMMSPlugin to MMA Manager. The plugin is called every time |
|
46 // a player is created. |
|
47 ManagerImpl.getInstance().addPlugIn(new AMMSPlugin()); |
|
48 } |
|
49 } |