Home | History | Annotate | Download | only in telephony
      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      */
     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     boolean addPackage(String x_app_id, String content_type,
     34             String package_name, String class_name,
     35             int app_type, boolean need_signature, boolean further_processing);
     36 
     37     /**
     38      * Updates receiver application that is last added.
     39      * Returns true if updating the information is successfull.
     40      */
     41     boolean updatePackage(String x_app_id, String content_type,
     42             String package_name, String class_name,
     43             int app_type, boolean need_signature, boolean further_processing);
     44 
     45     /**
     46      * Delites receiver application information.
     47      * Returns true if deleting is successfull.
     48      */
     49     boolean deletePackage(String x_app_id, String content_type,
     50                             String package_name, String class_name);
     51 }
     52 
     53