summaryrefslogtreecommitdiffstats
path: root/src/com/android/calendar/CloudNotificationBackplane.java
diff options
context:
space:
mode:
authorChris Wren <cwren@android.com>2013-03-27 17:32:38 -0700
committerChris Wren <cwren@android.com>2013-04-16 09:57:10 -0400
commitfec5bff4f2d3c50bc7d644b21acca37f320358e0 (patch)
tree440b97d53347915de6dede6bb81bc9085f190842 /src/com/android/calendar/CloudNotificationBackplane.java
parent268fe32fba935ab81749d4eb25fd0b7cf9f3b9b5 (diff)
downloadandroid_packages_apps_Calendar-fec5bff4f2d3c50bc7d644b21acca37f320358e0.tar.gz
android_packages_apps_Calendar-fec5bff4f2d3c50bc7d644b21acca37f320358e0.tar.bz2
android_packages_apps_Calendar-fec5bff4f2d3c50bc7d644b21acca37f320358e0.zip
add global dismiss to calendar, open source part
Change-Id: If179adc814a1da977712c9dc804e81a2cc726bce
Diffstat (limited to 'src/com/android/calendar/CloudNotificationBackplane.java')
-rw-r--r--src/com/android/calendar/CloudNotificationBackplane.java31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/com/android/calendar/CloudNotificationBackplane.java b/src/com/android/calendar/CloudNotificationBackplane.java
new file mode 100644
index 00000000..c089e7a9
--- /dev/null
+++ b/src/com/android/calendar/CloudNotificationBackplane.java
@@ -0,0 +1,31 @@
+/*
+ * Copyright (C) 2013 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.calendar;
+
+import java.io.IOException;
+
+import android.content.Context;
+import android.os.Bundle;
+
+public interface CloudNotificationBackplane {
+ public boolean open(Context context);
+ public boolean subscribeToGroup(String senderId, String account, String groupId)
+ throws IOException;
+ public void send(String to, String msgId, String collapseKey,
+ long timeToLive, Bundle data) throws IOException;
+ public void close();
+}