qthighway/xqservice/src/xqappmgr_p.h
branchRCL_3
changeset 9 5d007b20cfd0
equal deleted inserted replaced
8:885c2596c964 9:5d007b20cfd0
       
     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 XQAPPMGR_P_H
       
    23 #define XQAPPMGR_P_H
       
    24 
       
    25 #include<QString>
       
    26 #include<QList>
       
    27 #include<QUrl>
       
    28 #include<QUrl>
       
    29 #include<QFile>
       
    30 #include <xqaiwrequest.h>
       
    31 #include <xqaiwinterfacedescriptor.h>
       
    32 #include <xqsharablefile.h>
       
    33 #include <xqapplicationmanager.h>
       
    34 
       
    35 class XQServiceManager;
       
    36 class XQAiwUtils;
       
    37 
       
    38 class XQApplicationManagerPrivate 
       
    39 {
       
    40 public:
       
    41     XQApplicationManagerPrivate();
       
    42     virtual ~XQApplicationManagerPrivate();
       
    43     
       
    44     XQAiwRequest* create( const QString &interface, const QString &operation, bool embedded = true);
       
    45     XQAiwRequest* create( const QString &service, const QString &interface, const QString &operation, bool embedded = true);
       
    46     XQAiwRequest* create( const XQAiwInterfaceDescriptor &implementation, const QString &operation, bool embedded = true);
       
    47     XQAiwRequest* create( const QUrl &uri, const XQAiwInterfaceDescriptor *implementation, bool embedded);
       
    48     XQAiwRequest* create( const QFile &file, const XQAiwInterfaceDescriptor *implementation, bool embedded);
       
    49     XQAiwRequest* create( const XQSharableFile &file, const XQAiwInterfaceDescriptor *implementation, bool embedded);
       
    50 
       
    51     QList<XQAiwInterfaceDescriptor> list(const QString &interface, const QString &operation);
       
    52     QList<XQAiwInterfaceDescriptor> list(const QString &service, const QString &interface, const QString &operation);
       
    53     QList<XQAiwInterfaceDescriptor> list(const QUrl &uri);
       
    54     QList<XQAiwInterfaceDescriptor> list(const QFile &file);
       
    55     QList<XQAiwInterfaceDescriptor> list(const XQSharableFile &file);
       
    56 
       
    57     bool hasCustomHandler(const QUrl &uri) const;
       
    58     
       
    59     int lastError() const;
       
    60     bool isRunning(const XQAiwInterfaceDescriptor& implementation) const;
       
    61     bool getDrmAttributes(const QFile &file, const QList<int> &attributeNames, QVariantList &attributeValues);
       
    62     bool getDrmAttributes(const XQSharableFile &file, const QList<int> &attributeNames, QVariantList &attributeValues);
       
    63     int status(const XQAiwInterfaceDescriptor& implementation);
       
    64     
       
    65 private:
       
    66     
       
    67     QList<XQAiwInterfaceDescriptor> listMimeHandlers(const QFile &file);
       
    68     QList<XQAiwInterfaceDescriptor> listMimeHandlers(const XQSharableFile &file);
       
    69     bool getAppDescriptor(const QUrl &uri, XQAiwInterfaceDescriptor *descriptor);
       
    70     QList<XQAiwInterfaceDescriptor> listFileHandlers(const QList<XQAiwInterfaceDescriptor> &mimeHandlers);
       
    71     
       
    72 private:
       
    73     XQServiceManager * serviceMgr;
       
    74     XQAiwUtils * aiwUtilities;
       
    75     
       
    76 };
       
    77 
       
    78 #endif