| /******************************************************************************* |
| * Copyright (c) 2004, 2008 Tasktop Technologies and others. |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License v1.0 |
| * which accompanies this distribution, and is available at |
| * http://www.eclipse.org/legal/epl-v10.html |
| * |
| * Contributors: |
| * Tasktop Technologies - initial API and implementation |
| * Leah Findlater - improvements |
| *******************************************************************************/ |
| |
| package org.eclipse.mylyn.internal.monitor.core.collection; |
| |
| import java.util.List; |
| |
| import org.eclipse.mylyn.monitor.core.InteractionEvent; |
| |
| /** |
| * @author Mik Kersten |
| * @author Leah Findlater |
| */ |
| public interface IUsageCollector { |
| |
| public String getReportTitle(); |
| |
| public abstract void consumeEvent(InteractionEvent event, int userId); |
| |
| /** |
| * TODO: return report as HTML |
| * |
| * @return a list corresponding to all of the lines of the report |
| */ |
| public abstract List<String> getReport(); |
| |
| /** |
| * return report as plain text |
| * |
| * @return a list corresponding to all of the lines of the report |
| */ |
| public abstract List<String> getPlainTextReport(); |
| |
| /** |
| * Implementors will need to generate a unique filename given the directory in which to place the file |
| * |
| * @param directory |
| */ |
| public abstract void exportAsCSVFile(String directory); |
| } |