LeechCraft Monocle 0.6.70-16373-g319c272718
Modular document viewer for LeechCraft
Loading...
Searching...
No Matches
isupportforms.h
Go to the documentation of this file.
1/**********************************************************************
2 * LeechCraft - modular cross-platform feature rich internet client.
3 * Copyright (C) 2006-2014 Georg Rudoy
4 *
5 * Distributed under the Boost Software License, Version 1.0.
6 * (See accompanying file LICENSE or copy at https://www.boost.org/LICENSE_1_0.txt)
7 **********************************************************************/
8
9#pragma once
10
11#include <memory>
12#include <QtPlugin>
13
14namespace LC
15{
16namespace Monocle
17{
18 class IFormField;
19
20 typedef std::shared_ptr<IFormField> IFormField_ptr;
21 typedef QList<IFormField_ptr> IFormFields_t;
22
38 {
39 public:
40 virtual ~ISupportForms () {}
41
50 virtual IFormFields_t GetFormFields (int page) = 0;
51 };
52}
53}
54
55Q_DECLARE_INTERFACE (LC::Monocle::ISupportForms,
56 "org.LeechCraft.Monocle.ISupportForms/1.0")
Base interface to be implemented by form fields.
Definition iformfield.h:65
Interface for documents supporting inline forms.
virtual IFormFields_t GetFormFields(int page)=0
Returns the list of fields for the given page.
QList< IFormField_ptr > IFormFields_t
std::shared_ptr< IFormField > IFormField_ptr
A shared pointer to a IFormField.
Definition iformfield.h:119