QCodeEdit  2.2
lib/snippets/qsnippetpatternloader.h
Go to the documentation of this file.
00001 /****************************************************************************
00002 **
00003 ** Copyright (C) 2006-2009 fullmetalcoder <fullmetalcoder@hotmail.fr>
00004 **
00005 ** This file is part of the Edyuk project <http://edyuk.org>
00006 ** 
00007 ** This file may be used under the terms of the GNU General Public License
00008 ** version 3 as published by the Free Software Foundation and appearing in the
00009 ** file GPL.txt included in the packaging of this file.
00010 **
00011 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
00012 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
00013 **
00014 ****************************************************************************/
00015 
00016 #ifndef _QSNIPPET_PATTERN_LOADER_H_
00017 #define _QSNIPPET_PATTERN_LOADER_H_
00018 
00024 class QString;
00025 
00026 class QSnippet;
00027 
00028 class QSnippetPatternLoader
00029 {
00030     public:
00031         virtual ~QSnippetPatternLoader() {}
00032         
00033         virtual QString type() const = 0;
00034         
00035         virtual QSnippet* loadSnippet(const QString& pattern) const = 0;
00036         virtual bool reloadSnippet(QSnippet* snip, const QString& pattern) const = 0;
00037 };
00038 
00039 #endif