Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 245288 Details for
Bug 335123
[patch] KMail imap hangs
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
kipaddressinuse header
kipaddressinuse.h (text/plain), 2.09 KB, created by
Aaron Lewis
on 2010-08-30 00:46:42 UTC
(
hide
)
Description:
kipaddressinuse header
Filename:
MIME Type:
Creator:
Aaron Lewis
Created:
2010-08-30 00:46:42 UTC
Size:
2.09 KB
patch
obsolete
>#ifndef _KIPADDRESSINUSEH >#define _IKPADDRESSINUSEH >/********************************************************************** > * > * kipaddressinuse.h - rev1 > * Copyright (C) 2010 Guy Maurel <guy-kde at maurel de> > * > * This program is free software; you can redistribute it and/or modify > * it under the terms of the GNU General Public License as published by > * the Free Software Foundation; either version 2 of the License, or > * (at your option) any later version. > * > * This program is distributed in the hope that it will be useful, > * but WITHOUT ANY WARRANTY; without even the implied warranty of > * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the > * GNU General Public License for more details. > * > * You should have received a copy of the GNU General Public License > * along with this program; if not, write to the Free Software > * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. > * > * Send comments and bug fixes to the address above > * > *********************************************************************/ > >#include <QtCore/qglobal.h> >#include <QtNetwork/QHostAddress> >#include <QtNetwork/QAbstractSocket> > >/** @brief example of use > * works with IP-V4 and IP-V6 > * make a variable such as > * > * QString addr; > * > * catch the IP-address actually used, ie. from the connection/ socket > * transformed as a QString, in the format: > * IP-V4: 192.168.2.20 > * IP-V6: fe80::230:5ff:fed2:39a2 > * > * addr = < something from the connection >.toString(); > * > * Initialize and save the address > * > * KIpAddressInUse theAddressWeUse; > * theAddressWeUse.saveAddressInUse ( addr); > * > * before each read/write, check if the address is still available > * > * if ( ! theAddressWeUse.isSavedAddressStillAvailable()) { > * theAddressWeUse.resetAddressInUse (); > * < take some decisions... > > * } > * < go on > > */ > >class KIpAddressInUse >{ >public: > KIpAddressInUse (); > virtual ~ KIpAddressInUse (); > void saveAddressInUse ( QString ); > void resetAddressInUse (); > bool isSavedAddressStillAvailable(); > >private: > QString savedIpAddress; >}; >#endif
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 335123
:
245220
|
245222
|
245285
|
245286
| 245288 |
245290
|
257642