emailuis/nmailuiwidgets/inc/nmhtmllineedit.h
changeset 18 578830873419
child 48 10eaf342f539
equal deleted inserted replaced
4:e7aa27f58ae1 18:578830873419
       
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: Message editor header widget
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef NMHTMLLINEEDIT_H_
       
    19 #define NMHTMLLINEEDIT_H_
       
    20 
       
    21 #include <hblineedit.h>
       
    22 #include"nmailuiwidgetsdef.h"
       
    23 
       
    24 class NMAILUIWIDGETS_EXPORT NmHtmlLineEdit : public HbLineEdit
       
    25 {
       
    26     Q_OBJECT
       
    27     Q_PROPERTY(QString plainText READ toPlainText WRITE setPlainText USER true)
       
    28 public:
       
    29     NmHtmlLineEdit(QGraphicsItem *parent=0);
       
    30     virtual ~NmHtmlLineEdit();
       
    31 
       
    32     void setDocument(QTextDocument *document);
       
    33     QTextDocument *document() const;
       
    34 
       
    35     void setTextCursor(const QTextCursor &cursor);
       
    36     QTextCursor textCursor() const;
       
    37 
       
    38     QString toPlainText() const;
       
    39     QString toHtml() const;
       
    40 
       
    41 public slots:
       
    42     void setPlainText(const QString &text);
       
    43     void setHtml(const QString &text);
       
    44 };
       
    45 
       
    46 #endif /* NMHTMLLINEEDIT_H_ */