package lu.tudor.santec.gecamed.core.gui.controller.document;
///*******************************************************************************
// * This file is part of GECAMed.
// * 
// * GECAMed is free software: you can redistribute it and/or modify
// * it under the terms of the GNU Lesser General Public License (L-GPL) as published by
// * the Free Software Foundation, either version 3 of the License, or
// * (at your option) any later version.
// * 
// * GECAMed is distributed in the hope that it will be useful,
// * but WITHOUT ANY WARRANTY; without even the implied warranty of
// * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// * GNU Lesser General Public License for more details.
// * 
// * You should have received a copy of the GNU Lesser General Public License (L-GPL)
// * along with GECAMed.  If not, see <http://www.gnu.org/licenses/>.
// * 
// * GECAMed is Copyrighted by the Centre de Recherche Public Henri Tudor (http://www.tudor.lu)
// * (c) CRP Henri Tudor, Luxembourg, 2008
// *******************************************************************************/
//package lu.tudor.santec.gecamed.core.utils.controller.document;
//
//import java.io.File;
//import java.io.IOException;
//import java.util.List;
//
//import lu.tudor.santec.gecamed.addressbook.ejb.entity.beans.Contact;
//import lu.tudor.santec.gecamed.core.utils.controller.data.State;
//
////Interface for a contoller, every controller has to implement these methods.
//public interface IController 
//{
//	/* ======================================== */
//	// 		CONSTANTS
//	/* ======================================== */
//	
//	public static final int	PH_VERSION_OLD	= 0;
//	public static final int PH_VERSION_NEW	= 1;
//	
//	public static final int	TYPE_NEW_TEMPLATE	= 0;
//	public static final int	TYPE_OPEN_TEMPLATE	= 1;
//	public static final int	TYPE_NEW_LETTER		= 2;
//	public static final int	TYPE_OPEN_LETTER	= 3;
//	public static final int	TYPE_OTHER			= 4;
//	
//	
//	
//	/* ======================================== */
//	// 		METHODS
//	/* ======================================== */
//	
//	public void open (int letterType, boolean hidden) throws Exception;
//	
//	public void open (int letterType) throws Exception;
//
//	public void setDocument (byte[] document) throws IOException;
//
//	public void setDocument (byte[] document, String path) throws IOException;
//
//	public byte[] getDocument () throws IOException;
//
//	public File getDocumentbyFile () throws IOException;
//
//	public void createNewDocument () throws IOException;
//
//	public void createNewDocument (String path) throws IOException;
//
//	public int startReplacing (int version, List<Contact> contacts);
//	
//	public void waitForUserInput ();
//	
//	public State getState ();
//	
//	public void deleteDocument () throws IOException;
//	
//	public void insert (String text);
//	
//	public void print ();
//	
//	public void closeAndDeleteFile ();
//	
//	public boolean containsContactInfo ();
//	
//	public void checkIfContainsContactInfo ();
//	
//	public int getLetterType ();
//	
//	public void setPlaceholderVersion (int version);
//	
//	public void updatePlaceholders ();
//}
