• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdenetwork API Reference
  • KDE Home
  • Contact Us
 

kopete/kopete

  • sources
  • kde-4.12
  • kdenetwork
  • kopete
  • kopete
  • config
  • status
statusconfig.cpp
Go to the documentation of this file.
1 /*
2  statusconfig.cpp - Kopete Status Config
3 
4  Copyright (c) 2008 by Roman Jarosz <kedgedev@centrum.cz>
5  Kopete (c) 2008 by the Kopete developers <kopete-devel@kde.org>
6 
7  *************************************************************************
8  * *
9  * This library is free software; you can redistribute it and/or *
10  * modify it under the terms of the GNU Lesser General Public *
11  * License as published by the Free Software Foundation; either *
12  * version 2 of the License, or (at your option) any later version. *
13  * *
14  *************************************************************************
15 */
16 #include "statusconfig.h"
17 
18 #include "statusconfig_manager.h"
19 #include "statusconfig_general.h"
20 
21 #include <QtGui/QVBoxLayout>
22 #include <QtGui/QTabWidget>
23 
24 #include <kgenericfactory.h>
25 #include "kopetestatussettings.h"
26 
27 K_PLUGIN_FACTORY( KopeteStatusConfigFactory, registerPlugin<StatusConfig>(); )
28 K_EXPORT_PLUGIN( KopeteStatusConfigFactory("kcm_kopete_statusconfig") )
29 
30 StatusConfig::StatusConfig( QWidget *parent, const QVariantList &args )
31 : KCModule( KopeteStatusConfigFactory::componentData(), parent, args )
32 {
33  QVBoxLayout *layout = new QVBoxLayout(this);
34  // since KSetting::Dialog has margins here, we don't need our own.
35  layout->setContentsMargins( 0, 0, 0, 0);
36 
37  mStatusTabCtl = new QTabWidget(this);
38  mStatusTabCtl->setObjectName("mStatusTabCtl");
39  layout->addWidget( mStatusTabCtl );
40 
41  mPrfsManager = new StatusConfig_Manager( mStatusTabCtl );
42  connect( mPrfsManager, SIGNAL(changed()), this, SLOT(changed()) );
43  mStatusTabCtl->addTab( mPrfsManager, i18n("&Manager") );
44 
45  mPrfsGeneral = new StatusConfig_General( mStatusTabCtl );
46  addConfig( Kopete::StatusSettings::self(), mPrfsGeneral );
47  mStatusTabCtl->addTab( mPrfsGeneral, i18n("&General") );
48 }
49 
50 void StatusConfig::load()
51 {
52  KCModule::load();
53 
54 }
55 
56 void StatusConfig::save()
57 {
58  KCModule::save();
59 
60  mPrfsManager->save();
61 
62  load();
63 }
64 
65 
66 #include "statusconfig.moc"
QWidget
K_PLUGIN_FACTORY
K_PLUGIN_FACTORY(KopeteAccountConfigFactory, registerPlugin< KopeteAccountConfig >();) KopeteAccountConfig
Definition: kopeteaccountconfig.cpp:56
statusconfig_manager.h
StatusConfig::load
virtual void load()
Definition: statusconfig.cpp:50
StatusConfig_Manager::save
void save()
Definition: statusconfig_manager.cpp:97
statusconfig.h
StatusConfig::save
virtual void save()
Definition: statusconfig.cpp:56
StatusConfig
Definition: statusconfig.h:29
statusconfig_general.h
StatusConfig_Manager
Definition: statusconfig_manager.h:22
StatusConfig_General
Definition: statusconfig_general.h:22
KCModule
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:53:41 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kopete/kopete

Skip menu "kopete/kopete"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdenetwork API Reference

Skip menu "kdenetwork API Reference"
  • kget
  • kopete
  •   kopete
  •   libkopete
  • krdc
  • krfb

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal