qthighway/inc/xqserviceclientinfo.h
branchRCL_3
changeset 10 cd2778e5acfe
parent 9 5d007b20cfd0
child 11 19a54be74e5e
equal deleted inserted replaced
9:5d007b20cfd0 10:cd2778e5acfe
     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 XQSERVICECLIENTINFO_H
       
    23 #define XQSERVICECLIENTINFO_H
       
    24 
       
    25 #include <QObject>
       
    26 #include <QString>
       
    27 #include <QBitArray>
       
    28 
       
    29 namespace QtService {
       
    30 
       
    31 /*!
       
    32     \class ClientInfo
       
    33     \brief Container class for client information in ipc requests.
       
    34 */
       
    35     // FORWARD DECLARATIONS
       
    36     class ClientInfo: public QObject
       
    37     {
       
    38 
       
    39     public:    
       
    40         /*!
       
    41             Sets the client's name.
       
    42             \param aName Client's name.
       
    43         */
       
    44         inline void setName(const QString &aName) { iName = aName; }
       
    45 
       
    46         /*!
       
    47             Gets the client's name.
       
    48             \return Client's name as QString.
       
    49         */
       
    50         inline QString name() { return iName; }
       
    51 
       
    52         /*!
       
    53             Sets the client's process ID.
       
    54             \param aProcessId Id of the process.
       
    55         */
       
    56         inline void setProcessId(const qint64 aProcessId) { iProcessId = aProcessId; }
       
    57 
       
    58         /*!
       
    59             Gets the client's process ID.
       
    60             \return Process ID.
       
    61         */
       
    62         inline qint64 processId() { return iProcessId; }
       
    63 
       
    64         /*!
       
    65             Sets the client's vendor ID.
       
    66             \param aVendorId Vendor ID.
       
    67         */
       
    68         inline void setVendorId(const qint64 aVendorId) { iVendorId = aVendorId; }
       
    69 
       
    70         /*!
       
    71             Gets the client's vendor ID.
       
    72             \return Vendor ID.
       
    73         */
       
    74         inline const qint64 vendorId() { return iVendorId; }
       
    75 
       
    76         /*!
       
    77             Sets the client's capabilities.
       
    78             \param capabilities Capabilities to be set.
       
    79         */
       
    80         inline void setCapabilities(const quint32 capabilities) { iCapabilities = capabilities; }
       
    81 
       
    82         /*!
       
    83             Gets the client's capabilities.
       
    84             \return Client capabilities.
       
    85         */
       
    86         inline const quint32 capabilities() { return iCapabilities; }
       
    87 
       
    88         
       
    89     private:
       
    90         QString iName;
       
    91         qint64 iProcessId;
       
    92         qint64 iVendorId;
       
    93         quint32 iCapabilities;
       
    94     };
       
    95 }
       
    96 
       
    97 #endif //XQSERVICECLIENTINFO_H