summaryrefslogtreecommitdiffstats
path: root/src/com/android/providers/contacts/VoicemailUriType.java
diff options
context:
space:
mode:
authorDebashish Chatterjee <debashishc@google.com>2011-06-13 16:20:30 +0100
committerDebashish Chatterjee <debashishc@google.com>2011-06-15 15:57:09 +0100
commit52e8d24f8492116f0b49b147576ce13a5f913aa2 (patch)
treeb79b1d8c38b062b545fabb0ac6b15eb9798ca2d5 /src/com/android/providers/contacts/VoicemailUriType.java
parent59f6477e10203617f504857f7e9aee2fda393f4f (diff)
downloadpackages_providers_ContactsProvider-52e8d24f8492116f0b49b147576ce13a5f913aa2.tar.gz
packages_providers_ContactsProvider-52e8d24f8492116f0b49b147576ce13a5f913aa2.tar.bz2
packages_providers_ContactsProvider-52e8d24f8492116f0b49b147576ce13a5f913aa2.zip
Voicemail provider implementation within ContactsProvider.
- New voicemail provider class - all voicemail operations restricted to only 'voicemail' call type. - new voicemail permissions (currently defined in the manifest file itself) Change-Id: I32b916c5b4a53e93bafbecf7df7bee3f5e27fee6
Diffstat (limited to 'src/com/android/providers/contacts/VoicemailUriType.java')
-rw-r--r--src/com/android/providers/contacts/VoicemailUriType.java40
1 files changed, 40 insertions, 0 deletions
diff --git a/src/com/android/providers/contacts/VoicemailUriType.java b/src/com/android/providers/contacts/VoicemailUriType.java
new file mode 100644
index 00000000..9e728a28
--- /dev/null
+++ b/src/com/android/providers/contacts/VoicemailUriType.java
@@ -0,0 +1,40 @@
+/*
+ * Copyright (C) 2011 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License
+ */
+package com.android.providers.contacts;
+
+import com.android.providers.contacts.util.UriType;
+
+/**
+ * Defines the different URIs handled by the voicemail content provider.
+ */
+enum VoicemailUriType implements UriType {
+ NO_MATCH(null),
+ VOICEMAILS("voicemail"),
+ VOICEMAILS_ID("voicemail/#"),
+ VOICEMAILS_SOURCE("voicemail/source/*"),
+ VOICEMAILS_SOURCE_ID("voicemail/source/*/#");
+
+ private final String path;
+
+ private VoicemailUriType(String path) {
+ this.path = path;
+ }
+
+ @Override
+ public String path() {
+ return path;
+ }
+}