qthighway/inc/xqrequestutil.h
changeset 4 90517678cc4f
parent 1 2b40d63a9c3d
child 8 71781823f776
equal deleted inserted replaced
1:2b40d63a9c3d 4:90517678cc4f
    30 #include "xqrequestinfo.h"
    30 #include "xqrequestinfo.h"
    31 #include "xqsharablefile.h"
    31 #include "xqsharablefile.h"
    32 
    32 
    33 
    33 
    34 //
    34 //
    35 // XQRequestUtil is internal helper class for QtHighway request handling
    35 // XQRequestUtil is internal helper class for starting QtHigway service app
       
    36 // and for request handling
    36 //
    37 //
    37 // Option key names for XQRequestInfo
    38 // Option key names for XQRequestInfo
       
    39 
    38 namespace XQServiceUtils
    40 namespace XQServiceUtils
    39 {
    41 {
    40     static const char * OptEmbedded= "XQEmb";    // Option Embedded / Non-Embedded call
    42     static const char * OptEmbedded= "XQEmb";    // Option Embedded (off=Non-Embedded)
    41     static const char * OptBackground= "XQBg";   // Option Service to Background / Foreground
    43     static const char * OptBackground= "XQBg";   // Option Service to Background (missing=no changes in Z-order)
       
    44     static const char * OptForeground= "XQFg";   // Set service app to foreground (missing=no changes in Z-order)
    42     static const char * OptSynchronous= "XQSync"; // Option Syncronous / Asynchronous call
    45     static const char * OptSynchronous= "XQSync"; // Option Syncronous / Asynchronous call
    43     static const char * InfoSID= "XQSid"; // Client secure ID
    46     static const char * InfoSID= "XQSid"; // Client secure ID
    44     static const char * InfoVID= "XQVid"; // Client vendor ID
    47     static const char * InfoVID= "XQVid"; // Client vendor ID
    45     static const char * InfoCap= "XQCap"; //Client cap
    48     static const char * InfoCap= "XQCap"; //Client cap
       
    49     static const char * InfoId= "XQId"; // Request ID
    46     
    50     
    47     // Startup arguments
    51     // Startup arguments
    48     static const char * StartupArgEmbedded = "embedded=yes";
    52     static const char * StartupArgEmbedded = "embedded=yes";
    49     static const char * StartupArgService = "service=yes";
    53     static const char * StartupArgService = "service=yes";
       
    54     static const char * StartupArgInterfaceName = "intf=";
       
    55     static const char * StartupArgOperationName = "oper=";
    50 }
    56 }
    51 
    57 
    52 
    58 
    53 class XQSERVICEUTIL_EXPORT XQRequestUtil
    59 class XQSERVICEUTIL_EXPORT XQRequestUtil
    54 {
    60 {
    61     void setSecurityInfo(const quint32 sid, const quint32 vid, const quint32 caps );
    67     void setSecurityInfo(const quint32 sid, const quint32 vid, const quint32 caps );
    62     const XQSharableFile *getSharableFile(int index) const;
    68     const XQSharableFile *getSharableFile(int index) const;
    63     static int mapError(int error);
    69     static int mapError(int error);
    64         
    70         
    65     public:
    71     public:
    66         XQAiwInterfaceDescriptor mDescriptor;
    72         XQAiwInterfaceDescriptor mDescriptor;  // Contains e.g. service and interface name 
    67         XQRequestInfo mInfo;
    73         XQRequestInfo mInfo;
    68         QList<XQSharableFile> mSharableFileArgs;   // Use list even though one file possible to transfer
    74         QList<XQSharableFile> mSharableFileArgs;   // Use list even though one file possible to transfer
       
    75         QString mOperation;  // Operation (message) wanted
    69 };
    76 };
    70 
    77 
    71 #endif
    78 #endif