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

kopete/libkopete

  • sources
  • kde-4.14
  • kdenetwork
  • kopete
  • libkopete
kopetebehaviorsettings.cpp
Go to the documentation of this file.
1 // This file is generated by kconfig_compiler from kopetebehaviorsettings.kcfg.
2 // All changes you do to this file will be lost.
3 
4 #include "kopetebehaviorsettings.h"
5 
6 #include <kglobal.h>
7 #include <QtCore/QFile>
8 
9 using namespace Kopete;
10 
11 namespace Kopete {
12 
13 class BehaviorSettingsHelper
14 {
15  public:
16  BehaviorSettingsHelper() : q(0) {}
17  ~BehaviorSettingsHelper() { delete q; }
18  BehaviorSettings *q;
19 };
20 }
21 
22 K_GLOBAL_STATIC(BehaviorSettingsHelper, s_globalBehaviorSettings)
23 BehaviorSettings *BehaviorSettings::self()
24 {
25  if (!s_globalBehaviorSettings->q) {
26  new BehaviorSettings;
27  s_globalBehaviorSettings->q->readConfig();
28  }
29 
30  return s_globalBehaviorSettings->q;
31 }
32 
33 BehaviorSettings::BehaviorSettings( )
34  : KConfigSkeleton( QLatin1String( "kopeterc" ) )
35 {
36  Q_ASSERT(!s_globalBehaviorSettings->q);
37  s_globalBehaviorSettings->q = this;
38  setCurrentGroup( QLatin1String( "Behavior" ) );
39 
40  mStartDockedItem = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "startDocked" ), mStartDocked, false );
41  addItem( mStartDockedItem, QLatin1String( "startDocked" ) );
42  mShowSystemTrayItem = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "showSystemTray" ), mShowSystemTray, true );
43  addItem( mShowSystemTrayItem, QLatin1String( "showSystemTray" ) );
44  mUseMessageQueueItem = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "useMessageQueue" ), mUseMessageQueue, true );
45  addItem( mUseMessageQueueItem, QLatin1String( "useMessageQueue" ) );
46  mQueueUnreadMessagesItem = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "queueUnreadMessages" ), mQueueUnreadMessages, false );
47  addItem( mQueueUnreadMessagesItem, QLatin1String( "queueUnreadMessages" ) );
48  mContactListMouseNavigationItem = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "contactListMouseNavigation" ), mContactListMouseNavigation, false );
49  addItem( mContactListMouseNavigationItem, QLatin1String( "contactListMouseNavigation" ) );
50  mReconnectOnDisconnectItem = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "reconnectOnDisconnect" ), mReconnectOnDisconnect, true );
51  addItem( mReconnectOnDisconnectItem, QLatin1String( "reconnectOnDisconnect" ) );
52  QList<KConfigSkeleton::ItemEnum::Choice2> valuesinitialStatus;
53  {
54  KConfigSkeleton::ItemEnum::Choice2 choice;
55  choice.name = QLatin1String("Offline");
56  valuesinitialStatus.append( choice );
57  }
58  {
59  KConfigSkeleton::ItemEnum::Choice2 choice;
60  choice.name = QLatin1String("Online");
61  valuesinitialStatus.append( choice );
62  }
63  {
64  KConfigSkeleton::ItemEnum::Choice2 choice;
65  choice.name = QLatin1String("Away");
66  valuesinitialStatus.append( choice );
67  }
68  {
69  KConfigSkeleton::ItemEnum::Choice2 choice;
70  choice.name = QLatin1String("Busy");
71  valuesinitialStatus.append( choice );
72  }
73  {
74  KConfigSkeleton::ItemEnum::Choice2 choice;
75  choice.name = QLatin1String("Invisible");
76  valuesinitialStatus.append( choice );
77  }
78  mInitialStatusItem = new KConfigSkeleton::ItemEnum( currentGroup(), QLatin1String( "initialStatus" ), mInitialStatus, valuesinitialStatus, EnumInitialStatus::Offline );
79  addItem( mInitialStatusItem, QLatin1String( "initialStatus" ) );
80  mRaiseMessageWindowItem = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "raiseMessageWindow" ), mRaiseMessageWindow, false );
81  addItem( mRaiseMessageWindowItem, QLatin1String( "raiseMessageWindow" ) );
82  mShowEventsItem = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "showEvents" ), mShowEvents, true );
83  addItem( mShowEventsItem, QLatin1String( "showEvents" ) );
84  mQueueOnlyHighlightedMessagesInGroupChatsItem = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "queueOnlyHighlightedMessagesInGroupChats" ), mQueueOnlyHighlightedMessagesInGroupChats, false );
85  addItem( mQueueOnlyHighlightedMessagesInGroupChatsItem, QLatin1String( "queueOnlyHighlightedMessagesInGroupChats" ) );
86  mQueueOnlyMessagesOnAnotherDesktopItem = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "queueOnlyMessagesOnAnotherDesktop" ), mQueueOnlyMessagesOnAnotherDesktop, false );
87  addItem( mQueueOnlyMessagesOnAnotherDesktopItem, QLatin1String( "queueOnlyMessagesOnAnotherDesktop" ) );
88  mBalloonGroupMessageNotificationsPerSenderItem = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "balloonGroupMessageNotificationsPerSender" ), mBalloonGroupMessageNotificationsPerSender, true );
89  addItem( mBalloonGroupMessageNotificationsPerSenderItem, QLatin1String( "balloonGroupMessageNotificationsPerSender" ) );
90  mBalloonNotifyIgnoreClosesChatViewItem = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "balloonNotifyIgnoreClosesChatView" ), mBalloonNotifyIgnoreClosesChatView, false );
91  addItem( mBalloonNotifyIgnoreClosesChatViewItem, QLatin1String( "balloonNotifyIgnoreClosesChatView" ) );
92  mTrayflashNotifyItem = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "trayflashNotify" ), mTrayflashNotify, true );
93  addItem( mTrayflashNotifyItem, QLatin1String( "trayflashNotify" ) );
94  mTrayflashNotifyLeftClickOpensMessageItem = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "trayflashNotifyLeftClickOpensMessage" ), mTrayflashNotifyLeftClickOpensMessage, true );
95  addItem( mTrayflashNotifyLeftClickOpensMessageItem, QLatin1String( "trayflashNotifyLeftClickOpensMessage" ) );
96  mAnimateOnMessageWithOpenChatItem = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "animateOnMessageWithOpenChat" ), mAnimateOnMessageWithOpenChat, true );
97  addItem( mAnimateOnMessageWithOpenChatItem, QLatin1String( "animateOnMessageWithOpenChat" ) );
98  mTrayflashNotifySetCurrentDesktopToChatViewItem = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "trayflashNotifySetCurrentDesktopToChatView" ), mTrayflashNotifySetCurrentDesktopToChatView, false );
99  addItem( mTrayflashNotifySetCurrentDesktopToChatViewItem, QLatin1String( "trayflashNotifySetCurrentDesktopToChatView" ) );
100  mEnableEventsWhileAwayItem = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "enableEventsWhileAway" ), mEnableEventsWhileAway, true );
101  addItem( mEnableEventsWhileAwayItem, QLatin1String( "enableEventsWhileAway" ) );
102  QList<KConfigSkeleton::ItemEnum::Choice2> valueschatWindowGroupPolicy;
103  {
104  KConfigSkeleton::ItemEnum::Choice2 choice;
105  choice.name = QLatin1String("OpenNewWindow");
106  valueschatWindowGroupPolicy.append( choice );
107  }
108  {
109  KConfigSkeleton::ItemEnum::Choice2 choice;
110  choice.name = QLatin1String("GroupByAccount");
111  valueschatWindowGroupPolicy.append( choice );
112  }
113  {
114  KConfigSkeleton::ItemEnum::Choice2 choice;
115  choice.name = QLatin1String("GroupAll");
116  valueschatWindowGroupPolicy.append( choice );
117  }
118  {
119  KConfigSkeleton::ItemEnum::Choice2 choice;
120  choice.name = QLatin1String("GroupByGroup");
121  valueschatWindowGroupPolicy.append( choice );
122  }
123  {
124  KConfigSkeleton::ItemEnum::Choice2 choice;
125  choice.name = QLatin1String("GroupByMetaContact");
126  valueschatWindowGroupPolicy.append( choice );
127  }
128  mChatWindowGroupPolicyItem = new KConfigSkeleton::ItemEnum( currentGroup(), QLatin1String( "chatWindowGroupPolicy" ), mChatWindowGroupPolicy, valueschatWindowGroupPolicy, EnumChatWindowGroupPolicy::OpenNewWindow );
129  addItem( mChatWindowGroupPolicyItem, QLatin1String( "chatWindowGroupPolicy" ) );
130  mSpellCheckItem = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "spellCheck" ), mSpellCheck, true );
131  addItem( mSpellCheckItem, QLatin1String( "spellCheck" ) );
132  mRichTextByDefaultItem = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "richTextByDefault" ), mRichTextByDefault, false );
133  addItem( mRichTextByDefaultItem, QLatin1String( "richTextByDefault" ) );
134  mChatWindowShowSendButtonItem = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "chatWindowShowSendButton" ), mChatWindowShowSendButton, true );
135  addItem( mChatWindowShowSendButtonItem, QLatin1String( "chatWindowShowSendButton" ) );
136  mShowDatesItem = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "showDates" ), mShowDates, false );
137  addItem( mShowDatesItem, QLatin1String( "showDates" ) );
138  mTruncateContactNameItem = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "truncateContactName" ), mTruncateContactName, false );
139  addItem( mTruncateContactNameItem, QLatin1String( "truncateContactName" ) );
140  mTruncateContactNameLengthItem = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "truncateContactNameLength" ), mTruncateContactNameLength, 20 );
141  addItem( mTruncateContactNameLengthItem, QLatin1String( "truncateContactNameLength" ) );
142  mChatWindowBufferViewSizeItem = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "chatWindowBufferViewSize" ), mChatWindowBufferViewSize, 250 );
143  addItem( mChatWindowBufferViewSizeItem, QLatin1String( "chatWindowBufferViewSize" ) );
144  mHighlightEnabledItem = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "highlightEnabled" ), mHighlightEnabled, true );
145  addItem( mHighlightEnabledItem, QLatin1String( "highlightEnabled" ) );
146  mViewPluginItem = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "viewPlugin" ), mViewPlugin, QLatin1String( "kopete_chatwindow" ) );
147  addItem( mViewPluginItem, QLatin1String( "viewPlugin" ) );
148 
149  setCurrentGroup( QLatin1String( "AutoAway" ) );
150 
151  mUseAutoAwayItem = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "useAutoAway" ), mUseAutoAway, true );
152  addItem( mUseAutoAwayItem, QLatin1String( "useAutoAway" ) );
153  mAutoAwayTimeoutItem = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "autoAwayTimeout" ), mAutoAwayTimeout, 600 );
154  addItem( mAutoAwayTimeoutItem, QLatin1String( "autoAwayTimeout" ) );
155  mAutoAwayGoAvailableItem = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "autoAwayGoAvailable" ), mAutoAwayGoAvailable, true );
156  addItem( mAutoAwayGoAvailableItem, QLatin1String( "autoAwayGoAvailable" ) );
157  mAutoAwayAskAvailableItem = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "autoAwayAskAvailable" ), mAutoAwayAskAvailable, false );
158  addItem( mAutoAwayAskAvailableItem, QLatin1String( "autoAwayAskAvailable" ) );
159  mUseLastAwayMessageItem = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "useLastAwayMessage" ), mUseLastAwayMessage, true );
160  addItem( mUseLastAwayMessageItem, QLatin1String( "useLastAwayMessage" ) );
161  mUseCustomAwayMessageItem = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "useCustomAwayMessage" ), mUseCustomAwayMessage, false );
162  addItem( mUseCustomAwayMessageItem, QLatin1String( "useCustomAwayMessage" ) );
163  mAutoAwayCustomTitleItem = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "autoAwayCustomTitle" ), mAutoAwayCustomTitle, i18n("Away") );
164  addItem( mAutoAwayCustomTitleItem, QLatin1String( "autoAwayCustomTitle" ) );
165  mAutoAwayCustomMessageItem = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "autoAwayCustomMessage" ), mAutoAwayCustomMessage, i18n("I am gone right now, but I will be back later") );
166  addItem( mAutoAwayCustomMessageItem, QLatin1String( "autoAwayCustomMessage" ) );
167 
168  setCurrentGroup( QLatin1String( "ContactList" ) );
169 
170  mSmoothScrollingItem = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "smoothScrolling" ), mSmoothScrolling, true );
171  addItem( mSmoothScrollingItem, QLatin1String( "smoothScrolling" ) );
172 
173  setCurrentGroup( QLatin1String( "ChatWindowSettings" ) );
174 
175  mAlwaysShowTabsItem = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "AlwaysShowTabs" ), mAlwaysShowTabs, false );
176  addItem( mAlwaysShowTabsItem, QLatin1String( "AlwaysShowTabs" ) );
177  mShowContactNameItem = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "ShowContactName" ), mShowContactName, true );
178  addItem( mShowContactNameItem, QLatin1String( "ShowContactName" ) );
179  mHoverCloseItem = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "HoverClose" ), mHoverClose, true );
180  addItem( mHoverCloseItem, QLatin1String( "HoverClose" ) );
181 }
182 
183 BehaviorSettings::~BehaviorSettings()
184 {
185  if (!s_globalBehaviorSettings.isDestroyed()) {
186  s_globalBehaviorSettings->q = 0;
187  }
188 }
189 
Kopete::BehaviorSettings::mShowContactName
bool mShowContactName
Definition: kopetebehaviorsettings.h:1161
Kopete::BehaviorSettings::mViewPlugin
QString mViewPlugin
Definition: kopetebehaviorsettings.h:1144
Kopete::BehaviorSettings::mShowEvents
bool mShowEvents
Definition: kopetebehaviorsettings.h:1125
Kopete::BehaviorSettings::mTrayflashNotifySetCurrentDesktopToChatView
bool mTrayflashNotifySetCurrentDesktopToChatView
Definition: kopetebehaviorsettings.h:1133
Kopete::BehaviorSettings::mAutoAwayGoAvailable
bool mAutoAwayGoAvailable
Definition: kopetebehaviorsettings.h:1149
Kopete::BehaviorSettings::mAlwaysShowTabs
bool mAlwaysShowTabs
Definition: kopetebehaviorsettings.h:1160
Kopete::BehaviorSettings::mChatWindowGroupPolicy
int mChatWindowGroupPolicy
Definition: kopetebehaviorsettings.h:1135
Kopete::BehaviorSettings::~BehaviorSettings
~BehaviorSettings()
Definition: kopetebehaviorsettings.cpp:183
KConfigSkeleton
Kopete::BehaviorSettings::EnumChatWindowGroupPolicy::OpenNewWindow
Definition: kopetebehaviorsettings.h:25
Kopete::BehaviorSettings::mSmoothScrolling
bool mSmoothScrolling
Definition: kopetebehaviorsettings.h:1157
Kopete::BehaviorSettings::mAutoAwayAskAvailable
bool mAutoAwayAskAvailable
Definition: kopetebehaviorsettings.h:1150
Kopete::BehaviorSettings::mEnableEventsWhileAway
bool mEnableEventsWhileAway
Definition: kopetebehaviorsettings.h:1134
Kopete::BehaviorSettings::mTrayflashNotifyLeftClickOpensMessage
bool mTrayflashNotifyLeftClickOpensMessage
Definition: kopetebehaviorsettings.h:1131
Kopete::BehaviorSettings::mQueueOnlyMessagesOnAnotherDesktop
bool mQueueOnlyMessagesOnAnotherDesktop
Definition: kopetebehaviorsettings.h:1127
Kopete::BehaviorSettings::mAutoAwayCustomTitle
QString mAutoAwayCustomTitle
Definition: kopetebehaviorsettings.h:1153
Kopete::BehaviorSettings::mTrayflashNotify
bool mTrayflashNotify
Definition: kopetebehaviorsettings.h:1130
Kopete::BehaviorSettings::mUseAutoAway
bool mUseAutoAway
Definition: kopetebehaviorsettings.h:1147
QList::append
void append(const T &value)
Kopete::BehaviorSettings::mAnimateOnMessageWithOpenChat
bool mAnimateOnMessageWithOpenChat
Definition: kopetebehaviorsettings.h:1132
Kopete::BehaviorSettings
Definition: kopetebehaviorsettings.h:14
Kopete::BehaviorSettings::mAutoAwayCustomMessage
QString mAutoAwayCustomMessage
Definition: kopetebehaviorsettings.h:1154
Kopete::BehaviorSettings::mTruncateContactName
bool mTruncateContactName
Definition: kopetebehaviorsettings.h:1140
Kopete::BehaviorSettings::mQueueUnreadMessages
bool mQueueUnreadMessages
Definition: kopetebehaviorsettings.h:1120
Kopete::BehaviorSettings::mShowSystemTray
bool mShowSystemTray
Definition: kopetebehaviorsettings.h:1118
Kopete::BehaviorSettings::mBalloonNotifyIgnoreClosesChatView
bool mBalloonNotifyIgnoreClosesChatView
Definition: kopetebehaviorsettings.h:1129
QList
Kopete::BehaviorSettings::mUseMessageQueue
bool mUseMessageQueue
Definition: kopetebehaviorsettings.h:1119
Kopete::BehaviorSettings::mHoverClose
bool mHoverClose
Definition: kopetebehaviorsettings.h:1162
Kopete::BehaviorSettings::mContactListMouseNavigation
bool mContactListMouseNavigation
Definition: kopetebehaviorsettings.h:1121
Kopete::BehaviorSettings::BehaviorSettings
BehaviorSettings()
Definition: kopetebehaviorsettings.cpp:33
Kopete::BehaviorSettings::mChatWindowShowSendButton
bool mChatWindowShowSendButton
Definition: kopetebehaviorsettings.h:1138
QLatin1String
Kopete::BehaviorSettings::mBalloonGroupMessageNotificationsPerSender
bool mBalloonGroupMessageNotificationsPerSender
Definition: kopetebehaviorsettings.h:1128
Kopete::BehaviorSettings::mShowDates
bool mShowDates
Definition: kopetebehaviorsettings.h:1139
Kopete::BehaviorSettings::mAutoAwayTimeout
int mAutoAwayTimeout
Definition: kopetebehaviorsettings.h:1148
Kopete::BehaviorSettings::mChatWindowBufferViewSize
int mChatWindowBufferViewSize
Definition: kopetebehaviorsettings.h:1142
Kopete::BehaviorSettings::mHighlightEnabled
bool mHighlightEnabled
Definition: kopetebehaviorsettings.h:1143
Kopete::BehaviorSettings::mInitialStatus
int mInitialStatus
Definition: kopetebehaviorsettings.h:1123
Kopete::BehaviorSettings::mRichTextByDefault
bool mRichTextByDefault
Definition: kopetebehaviorsettings.h:1137
Kopete::BehaviorSettings::mSpellCheck
bool mSpellCheck
Definition: kopetebehaviorsettings.h:1136
Kopete::BehaviorSettings::mRaiseMessageWindow
bool mRaiseMessageWindow
Definition: kopetebehaviorsettings.h:1124
Kopete::BehaviorSettings::mStartDocked
bool mStartDocked
Definition: kopetebehaviorsettings.h:1117
kopetebehaviorsettings.h
Kopete::BehaviorSettings::mUseLastAwayMessage
bool mUseLastAwayMessage
Definition: kopetebehaviorsettings.h:1151
Kopete::BehaviorSettings::EnumInitialStatus::Offline
Definition: kopetebehaviorsettings.h:20
Kopete::BehaviorSettings::mTruncateContactNameLength
int mTruncateContactNameLength
Definition: kopetebehaviorsettings.h:1141
Kopete::BehaviorSettings::mUseCustomAwayMessage
bool mUseCustomAwayMessage
Definition: kopetebehaviorsettings.h:1152
Kopete::BehaviorSettings::mReconnectOnDisconnect
bool mReconnectOnDisconnect
Definition: kopetebehaviorsettings.h:1122
Kopete::BehaviorSettings::mQueueOnlyHighlightedMessagesInGroupChats
bool mQueueOnlyHighlightedMessagesInGroupChats
Definition: kopetebehaviorsettings.h:1126
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:29:19 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kopete/libkopete

Skip menu "kopete/libkopete"
  • 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