2 * This file is part of QMAFW
4 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). All rights
7 * Contact: Visa Smolander <visa.smolander@nokia.com>
9 * This software, including documentation, is protected by copyright controlled
10 * by Nokia Corporation. All rights are reserved. Copying, including
11 * reproducing, storing, adapting or translating, any or all of this material
12 * requires the prior written consent of Nokia Corporation. This material also
13 * contains confidential information which may not be disclosed to others
14 * without the prior written consent of Nokia.
18 #ifndef QNETWORKSTUBS_H
19 #define QNETWORKSTUBS_H
22 #include <QtNetwork/QNetworkConfiguration>
24 class QNetworkConfigurationManager;
26 class NetworkStubHelper : public QObject
30 static int networkConfigurationManagerInstances;
32 friend class QNetworkConfiguration;
33 friend class QNetworkConfigurationManager;
35 static bool currentCreatedConfigIsValid;
37 void emitConfigurationChange(const QNetworkConfiguration &config,
38 QNetworkConfiguration::StateFlags confState)
40 m_currentConfState = confState;
41 Q_EMIT configurationChange(config);
44 void changeCurrentConfiguration(int id);
47 void configurationChange(QNetworkConfiguration config);
50 QNetworkConfiguration::StateFlags m_currentConfState;
53 #endif // QNETWORKSTUBS_H