• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2007-2008 Esmertec AG.
3  * Copyright (C) 2007-2008 The Android Open Source Project
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  *      http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */
17 
18 package com.android.im.service;
19 
20 import android.content.ComponentName;
21 
22 public class ImServiceConstants {
23     /**
24      * RemoteImService name, used for start or stop the IM service.
25      */
26     public static final ComponentName IM_SERVICE_COMPONENT = new ComponentName(
27             "com.android.im",
28             "com.android.im.service.RemoteImService");
29 
30     /**
31      * Broadcast action: broadcast event for avatar changed.
32      */
33     public static final String ACTION_AVATAR_CHANGED =
34             "android.intent.action.IM_AVATAR_CHANGED";
35 
36     /**
37      * Intent action for managing a subscription request.
38      */
39     public static final String ACTION_MANAGE_SUBSCRIPTION =
40             "android.intent.action.IM_MANAGE_SUBSCRIPTION";
41 
42     /**
43      * Use EXTRA_INTENT_FROM_ADDRESS to include the from address of a contact in an intent.
44      */
45     public static final String EXTRA_INTENT_FROM_ADDRESS = "from";
46 
47     /**
48      * Use EXTRA_INTENT_PROVIDER_ID to include the provider id in an intent.
49      */
50     public static final String EXTRA_INTENT_PROVIDER_ID = "providerId";
51 
52     /**
53      * Use EXTRA_INTENT_ACCOUNT_ID to include the account id in an intent.
54      */
55     public static final String EXTRA_INTENT_ACCOUNT_ID = "accountId";
56 
57     /**
58      * Use EXTRA_INTENT_LIST_NAME to include the contact list name in an intent.
59      */
60     public static final String EXTRA_INTENT_LIST_NAME = "listName";
61 
62     public static final String EXTRA_CHECK_AUTO_LOGIN = "autologin";
63 
64     /**
65      * USE EXTRA_INTENT_SHOW_MULTIPLE to inform the activity to show multiple chat notifications
66      */
67     public static final String EXTRA_INTENT_SHOW_MULTIPLE = "show_multiple";
68 }
69