~ubuntu-branches/ubuntu/precise/networkmanagement/precise

« back to all changes in this revision

Viewing changes to libs/internals/uiutils.h

  • Committer: Bazaar Package Importer
  • Author(s): Felix Geyer
  • Date: 2011-10-23 14:00:13 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20111023140013-e38hdzybcg6zndrk
Tags: 0.9~svngit.nm09.20111023.ff842e-0ubuntu1
* New upstream snapshot.
* Drop all patches, merged upstream.
* Add kubuntu_add_subdirectory_po.diff to build the translations.

Show diffs side-by-side

added added

removed removed

Lines of Context:
73
73
    static QString connectionStateToString(Solid::Control::NetworkInterfaceNm09::ConnectionState state, const QString &connectionName = QString());
74
74
 
75
75
    /**
 
76
     * @return a human-readable description of the connection state of a given interface connection
 
77
     * @param state The connection state
 
78
     */
 
79
    static QString connectionStateToString(Knm::InterfaceConnection::ActivationState state, const QString &connectionName = QString());
 
80
 
 
81
    /**
76
82
     * @return an icon name suitable for the interface type
77
83
     * @param iface the network interface
78
84
     */
125
131
     */
126
132
    static QByteArray macAddressFromString( const QString & s);
127
133
 
 
134
    /**
 
135
     * @param freq frequency of a wireless network
 
136
     * @return The frequency translated into band (first element of the QPair) and channel. The band value is
 
137
     * corresponding to the type enum in Knm::WirelessSetting::EnumBand
 
138
     */
 
139
    static QPair<int, int> findBandAndChannel(int freq);
 
140
 
 
141
    /**
 
142
     * @param band The band of a wireless network. The value corresponds to the type enum in Knm::WirelessSetting::EnumBand
 
143
     * @return A string representation
 
144
     */
 
145
    static QString wirelessBandToString(int band);
 
146
 
128
147
};
129
148
#endif // UIUTILS_H