Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 245286 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 cpp implementation
kipaddressinuse.cpp (text/plain), 1.88 KB, created by
Aaron Lewis
on 2010-08-30 00:46:27 UTC
(
hide
)
Description:
kipaddressinuse cpp implementation
Filename:
MIME Type:
Creator:
Aaron Lewis
Created:
2010-08-30 00:46:27 UTC
Size:
1.88 KB
patch
obsolete
>/********************************************************************** > * > * kipaddressinuse.cpp - 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 "kipaddressinuse.h" >#include <QtNetwork/QNetworkInterface> > >KIpAddressInUse::KIpAddressInUse () >{ >} > >KIpAddressInUse::~KIpAddressInUse () >{ >} > >void KIpAddressInUse::saveAddressInUse ( QString addr) >{ > savedIpAddress = addr; >} > >void KIpAddressInUse::resetAddressInUse () >{ > savedIpAddress = QString ( ""); >} > >bool KIpAddressInUse::isSavedAddressStillAvailable() >{ > if ( savedIpAddress.isEmpty()) { > return false; > } > // get all the available addresses on this system > QList<QHostAddress> allAddrs= QNetworkInterface::allAddresses(); > > // for each available address > QString itS; > for (QList< QHostAddress >::Iterator it = allAddrs.begin (); it != allAddrs.end (); ++it) > { > // compare the addresses > itS = it->toString(); > if ( savedIpAddress == it->toString()) { > return true; > } > } > // the saved IP-address is no more available > return false; >}
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