qtmobileextensions/src/sysinfo/xqsysinfo_p.h
changeset 1 2b40d63a9c3d
equal deleted inserted replaced
0:cfcbf08528c4 1:2b40d63a9c3d
       
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 *
       
     5 * This program is free software: you can redistribute it and/or modify
       
     6 * it under the terms of the GNU Lesser General Public License as published by
       
     7 * the Free Software Foundation, version 2.1 of the License.
       
     8 * 
       
     9 * This program is distributed in the hope that it will be useful,
       
    10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
       
    11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
       
    12 * GNU Lesser General Public License for more details.
       
    13 *
       
    14 * You should have received a copy of the GNU Lesser General Public License
       
    15 * along with this program.  If not, 
       
    16 * see "http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html/".
       
    17 *
       
    18 * Description:
       
    19 *
       
    20 */
       
    21 
       
    22 #ifndef XQSYSINFOPRIVATE_H
       
    23 #define XQSYSINFOPRIVATE_H
       
    24 
       
    25 // INCLUDES
       
    26 #include "xqsysinfo.h"
       
    27 #include "xqsysinfo_p.h"
       
    28 
       
    29 #include "networksignalmonitor.h"
       
    30 #include "batterymonitor.h"
       
    31 
       
    32 #include <etel3rdparty.h>
       
    33 
       
    34 // FORWARD DECLARATIONS
       
    35 class CDeviceInfo;
       
    36 
       
    37 // CLASS DECLARATION
       
    38 class XQSysInfoPrivate: public QObject, public CBase, public MNetworkSignalObserver, 
       
    39     public MBatteryObserver
       
    40 {
       
    41     Q_OBJECT
       
    42 public:
       
    43     XQSysInfoPrivate(XQSysInfo* sysInfo);
       
    44     ~XQSysInfoPrivate();
       
    45     
       
    46     XQSysInfo::Language currentLanguage() const;
       
    47     QString imei() const;
       
    48     QString imsi() const;
       
    49     QString softwareVersion() const;
       
    50     QString model() const;
       
    51     QString manufacturer() const;
       
    52     uint batteryLevel() const;
       
    53     int signalStrength() const;                  
       
    54     QString browserVersion() const;
       
    55     
       
    56     int memory() const;
       
    57     qlonglong diskSpace(XQSysInfo::Drive drive);
       
    58     bool isDiskSpaceCritical(XQSysInfo::Drive drive) const;
       
    59     bool isNetwork() const;
       
    60     
       
    61     static bool isSupported(int featureId);
       
    62     
       
    63     XQSysInfo::Error error() const;
       
    64     
       
    65 private: // From MNetworkSignalObserver
       
    66     void SignalStatusL(TInt32 aStrength, TInt8 aBars);
       
    67 
       
    68 private: // From MBatteryObserver
       
    69     void BatteryLevelL(TUint aChargeLevel, CTelephony::TBatteryStatus aBatteryStatus);
       
    70     
       
    71 private:
       
    72     XQSysInfo* q;
       
    73     CDeviceInfo* iDeviceInfo;
       
    74     
       
    75     mutable int iError;
       
    76 };
       
    77 
       
    78 #endif /*XQSYSINFOPRIVATE_H*/
       
    79 
       
    80 // End of file