1 /* 2 * Copyright (C) 2010 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 package com.android.internal.telephony; 18 19 import android.content.Intent; 20 21 interface IWapPushManager { 22 /** 23 * Processes WAP push message and triggers the receiver application registered 24 * in the application ID table. 25 */ processMessage(String app_id, String content_type, in Intent intent)26 int processMessage(String app_id, String content_type, in Intent intent); 27 28 /** 29 * Add receiver application into the application ID table. 30 * Returns true if inserting the information is successfull. Inserting the duplicated 31 * record in the application ID table is not allowed. Use update/delete method. 32 */ 33 @UnsupportedAppUsage addPackage(String x_app_id, String content_type, String package_name, String class_name, int app_type, boolean need_signature, boolean further_processing)34 boolean addPackage(String x_app_id, String content_type, 35 String package_name, String class_name, 36 int app_type, boolean need_signature, boolean further_processing); 37 38 /** 39 * Updates receiver application that is last added. 40 * Returns true if updating the information is successfull. 41 */ 42 @UnsupportedAppUsage updatePackage(String x_app_id, String content_type, String package_name, String class_name, int app_type, boolean need_signature, boolean further_processing)43 boolean updatePackage(String x_app_id, String content_type, 44 String package_name, String class_name, 45 int app_type, boolean need_signature, boolean further_processing); 46 47 /** 48 * Delites receiver application information. 49 * Returns true if deleting is successfull. 50 */ 51 @UnsupportedAppUsage deletePackage(String x_app_id, String content_type, String package_name, String class_name)52 boolean deletePackage(String x_app_id, String content_type, 53 String package_name, String class_name); 54 } 55 56