150ab55f5778342f83d0fcb2e6b2c3e8cae91ca8aJames Lemieux/* 250ab55f5778342f83d0fcb2e6b2c3e8cae91ca8aJames Lemieux * Copyright (C) 2015 The Android Open Source Project 350ab55f5778342f83d0fcb2e6b2c3e8cae91ca8aJames Lemieux * 450ab55f5778342f83d0fcb2e6b2c3e8cae91ca8aJames Lemieux * Licensed under the Apache License, Version 2.0 (the "License"); 550ab55f5778342f83d0fcb2e6b2c3e8cae91ca8aJames Lemieux * you may not use this file except in compliance with the License. 650ab55f5778342f83d0fcb2e6b2c3e8cae91ca8aJames Lemieux * You may obtain a copy of the License at 750ab55f5778342f83d0fcb2e6b2c3e8cae91ca8aJames Lemieux * 850ab55f5778342f83d0fcb2e6b2c3e8cae91ca8aJames Lemieux * http://www.apache.org/licenses/LICENSE-2.0 950ab55f5778342f83d0fcb2e6b2c3e8cae91ca8aJames Lemieux * 1050ab55f5778342f83d0fcb2e6b2c3e8cae91ca8aJames Lemieux * Unless required by applicable law or agreed to in writing, software 1150ab55f5778342f83d0fcb2e6b2c3e8cae91ca8aJames Lemieux * distributed under the License is distributed on an "AS IS" BASIS, 1250ab55f5778342f83d0fcb2e6b2c3e8cae91ca8aJames Lemieux * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1350ab55f5778342f83d0fcb2e6b2c3e8cae91ca8aJames Lemieux * See the License for the specific language governing permissions and 1450ab55f5778342f83d0fcb2e6b2c3e8cae91ca8aJames Lemieux * limitations under the License. 1550ab55f5778342f83d0fcb2e6b2c3e8cae91ca8aJames Lemieux */ 1650ab55f5778342f83d0fcb2e6b2c3e8cae91ca8aJames Lemieux 1750ab55f5778342f83d0fcb2e6b2c3e8cae91ca8aJames Lemieuxpackage com.android.deskclock.events; 1850ab55f5778342f83d0fcb2e6b2c3e8cae91ca8aJames Lemieux 1950ab55f5778342f83d0fcb2e6b2c3e8cae91ca8aJames Lemieuximport android.support.annotation.StringRes; 2050ab55f5778342f83d0fcb2e6b2c3e8cae91ca8aJames Lemieux 2150ab55f5778342f83d0fcb2e6b2c3e8cae91ca8aJames Lemieuxpublic interface EventTracker { 2250ab55f5778342f83d0fcb2e6b2c3e8cae91ca8aJames Lemieux /** 23541022fcda760343fd5aef758a5c292485476a6dJames Lemieux * Record the event in some form or fashion. 2450ab55f5778342f83d0fcb2e6b2c3e8cae91ca8aJames Lemieux * 25541022fcda760343fd5aef758a5c292485476a6dJames Lemieux * @param category indicates what entity raised the event: Alarm, Clock, Timer or Stopwatch 26541022fcda760343fd5aef758a5c292485476a6dJames Lemieux * @param action indicates how the entity was altered; e.g. create, delete, fire, etc. 27541022fcda760343fd5aef758a5c292485476a6dJames Lemieux * @param label indicates where the action originated; e.g. DeskClock (UI), Intent, 28541022fcda760343fd5aef758a5c292485476a6dJames Lemieux * Notification, etc.; 0 indicates no label could be established 2950ab55f5778342f83d0fcb2e6b2c3e8cae91ca8aJames Lemieux */ 3050ab55f5778342f83d0fcb2e6b2c3e8cae91ca8aJames Lemieux void sendEvent(@StringRes int category, @StringRes int action, @StringRes int label); 31541022fcda760343fd5aef758a5c292485476a6dJames Lemieux}