author | clem <clem> | 2004-08-03 22:58:18 (UTC) |
---|---|---|
committer | clem <clem> | 2004-08-03 22:58:18 (UTC) |
commit | 02434fe2d87d1c69c60693d9537b419d9dfd44e7 (patch) (side-by-side diff) | |
tree | 21f980e0af9ddd57758245d1f27515e052d7921f | |
parent | 633a00b5bff9e5e9141758c61d61a40410a165cb (diff) | |
download | opie-02434fe2d87d1c69c60693d9537b419d9dfd44e7.zip opie-02434fe2d87d1c69c60693d9537b419d9dfd44e7.tar.gz opie-02434fe2d87d1c69c60693d9537b419d9dfd44e7.tar.bz2 |
renamed noticeW pointer to m_noticeW, to be coherent with m_config style
-rw-r--r-- | noncore/securityplugins/notice/noticeplugin.cpp | 12 | ||||
-rw-r--r-- | noncore/securityplugins/notice/noticeplugin.h | 2 |
2 files changed, 7 insertions, 7 deletions
diff --git a/noncore/securityplugins/notice/noticeplugin.cpp b/noncore/securityplugins/notice/noticeplugin.cpp index 1da260a..5617855 100644 --- a/noncore/securityplugins/notice/noticeplugin.cpp +++ b/noncore/securityplugins/notice/noticeplugin.cpp @@ -1,68 +1,68 @@ #include "noticeplugin.h" #include <opie2/oapplication.h> #include <qmessagebox.h> #include <qregexp.h> using Opie::Security::MultiauthPluginObject; using Opie::Security::MultiauthConfigWidget; /// creates and initializes the m_config Config object -NoticePlugin::NoticePlugin() : MultiauthPluginObject(), noticeW(0) { +NoticePlugin::NoticePlugin() : MultiauthPluginObject(), m_noticeW(0) { m_config = new Config("Security"); m_config->setGroup("NoticePlugin"); } /// deletes the m_config Config object and noticeW if necessary NoticePlugin::~NoticePlugin() { delete m_config; - if (noticeW != 0) - delete noticeW; + if (m_noticeW != 0) + delete m_noticeW; } /// Simply return its name (Notice plugin) QString NoticePlugin::pluginName() const { return "Notice plugin"; } /// return the Notice widget configuration widget /** * \return noticeW, the NoticeConfigWidget */ MultiauthConfigWidget * NoticePlugin::configWidget(QWidget * parent) { - if (noticeW == 0) - noticeW = new NoticeConfigWidget(parent, "Notice configuration widget"); - return noticeW; + if (m_noticeW == 0) + m_noticeW = new NoticeConfigWidget(parent, "Notice configuration widget"); + return m_noticeW; } /// return the path of the small tab icon QString NoticePlugin::pixmapNameConfig() const { return "security/noticeplugin_small"; } /// return the path of the big icon for the active/order checklist QString NoticePlugin::pixmapNameWidget() const { return "security/noticeplugin"; } /// Displays the configured message and an 'Accept' button /** * \return the outcome code of this authentication (can be only success) */ int NoticePlugin::authenticate() { QMessageBox noticeDialog("Notice plugin", getNoticeText(), QMessageBox::Warning, QMessageBox::Yes, 0, 0, 0, "notice plugin dialog", true, Qt::WStyle_NoBorder | Qt::WStyle_Customize | Qt::WStyle_StaysOnTop); noticeDialog.setButtonText(QMessageBox::Yes, tr("I accept")); QRect desk = oApp->desktop()->geometry(); noticeDialog.setGeometry( 0, 0, desk.width(), desk.height() ); diff --git a/noncore/securityplugins/notice/noticeplugin.h b/noncore/securityplugins/notice/noticeplugin.h index 4aa6f02..2828f58 100644 --- a/noncore/securityplugins/notice/noticeplugin.h +++ b/noncore/securityplugins/notice/noticeplugin.h @@ -27,38 +27,38 @@ -- :-=` this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef NOTICE_PLUGIN_H #define NOTICE_PLUGIN_H #include <qstring.h> #include <qpe/config.h> #include <opie2/multiauthplugininterface.h> #include "noticeConfigWidget.h" /// Multi-authentication plugin, having the user accept a (legal, etc.) notice text. /** * The plugin itself, implementing the main authenticate() function. */ class NoticePlugin : public QObject, public Opie::Security::MultiauthPluginObject { Q_OBJECT; public: NoticePlugin(); virtual ~NoticePlugin(); int authenticate(); Opie::Security::MultiauthConfigWidget * configWidget(QWidget * parent); QString pixmapNameConfig() const; QString pixmapNameWidget() const; QString pluginName() const; private: - NoticeConfigWidget * noticeW; + NoticeConfigWidget * m_noticeW; Config * m_config; QString getNoticeText(); }; #endif |