Akonadi Contacts

smsdialog.h
1 /*
2  This file is part of Akonadi Contact.
3 
4  SPDX-FileCopyrightText: 2010 Felix Mauch ([email protected])
5 
6  SPDX-License-Identifier: LGPL-2.0-or-later
7 */
8 
9 #pragma once
10 
11 #include <QDialog>
12 
13 class QLabel;
14 
15 class KTextEdit;
16 
17 namespace KContacts
18 {
19 class PhoneNumber;
20 }
21 
22 class SmsDialog : public QDialog
23 {
24  Q_OBJECT
25 
26 public:
27  explicit SmsDialog(const KContacts::PhoneNumber &number);
28  ~SmsDialog();
29 
30  Q_REQUIRED_RESULT QString message() const;
31 
32 private:
33  /**
34  * Calculates the needed amount of sms and the number of characters left in the current sms.
35  * Shows the result in the QLabel mLengthLabel.
36  */
37  void updateCounter();
38  void initUI();
39 
40  QString mNumber;
41  KTextEdit *mSmsTextEdit = nullptr;
42  QLabel *mLengthLabel = nullptr;
43  QString mText;
44 };
45 
KCOREADDONS_EXPORT void message(KMessage::MessageType messageType, const QString &text, const QString &caption=QString())
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Fri Jun 18 2021 23:08:56 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.