1 /* 2 * #%L 3 * Native ARchive plugin for Maven 4 * %% 5 * Copyright (C) 2002 - 2014 NAR Maven Plugin developers. 6 * %% 7 * Licensed under the Apache License, Version 2.0 (the "License"); 8 * you may not use this file except in compliance with the License. 9 * You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, software 14 * distributed under the License is distributed on an "AS IS" BASIS, 15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 * See the License for the specific language governing permissions and 17 * limitations under the License. 18 * #L% 19 */ 20 package com.github.maven_nar.cpptasks.trolltech; 21 22 import java.io.IOException; 23 import java.io.Reader; 24 25 import com.github.maven_nar.cpptasks.parser.Parser; 26 27 /** 28 * Dependency scanner for Trolltech Qt User Interface definition files. 29 * 30 * .ui files are XML documents that may contain an include elements, 31 * however the includes are just copied to the generated files and 32 * and changes to the includes do not need to trigger rerunning uic. 33 * 34 * @author Curt Arnold 35 */ 36 public final class UserInterfaceParser implements Parser { 37 38 /** 39 * Constructor. 40 * 41 */ 42 public UserInterfaceParser() { 43 } 44 45 /** 46 * Adds filename to the list of included files. 47 * 48 * @param include 49 * String included file name 50 */ 51 public void addFilename(final String include) { 52 } 53 54 /** 55 * Gets included files. 56 * 57 * @return String[] included files 58 */ 59 @Override 60 public String[] getIncludes() { 61 return new String[0]; 62 } 63 64 /** 65 * Parses source file for dependencies. 66 * 67 * @param reader 68 * Reader reader 69 * @throws IOException 70 * if error reading source file 71 */ 72 @Override 73 public void parse(final Reader reader) throws IOException { 74 } 75 }