1package com.android.internal.telephony;
2
3/**
4 * Interface used to interact with extended MMI/USSD network service.
5 */
6interface IExtendedNetworkService {
7    /**
8     * Set a MMI/USSD command to ExtendedNetworkService for further process.
9     * This should be called when a MMI command is placed from panel.
10     * @param number the dialed MMI/USSD number.
11     */
12    void setMmiString(String number);
13
14    /**
15     * return the specific string which is used to prompt MMI/USSD is running
16     */
17    CharSequence getMmiRunningText();
18
19    /**
20     * Get specific message which should be displayed on pop-up dialog.
21     * @param text original MMI/USSD message response from framework
22     * @return specific user message correspond to text. null stands for no pop-up dialog need to show.
23     */
24    CharSequence getUserMessage(CharSequence text);
25
26    /**
27     * Clear pre-set MMI/USSD command.
28     * This should be called when user cancel a pre-dialed MMI command.
29     */
30    void clearMmiString();
31}
32