javamanager/javaappscheme/src.s60/serviceapp.h
changeset 61 bf7ee68962da
child 72 1f0034e370aa
equal deleted inserted replaced
48:e0d6e9bd3ca7 61:bf7ee68962da
       
     1 /*
       
     2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  QT Service application the implements support for
       
    15 *               starting Java applications using "javaapp:" QUrl
       
    16 *
       
    17 */
       
    18 
       
    19 #ifndef JAVAQTSERVICEAPP_H
       
    20 #define JAVAQTSERVICEAPP_H
       
    21 
       
    22 
       
    23 // #include <QCoreApplication>
       
    24 #include <QApplication>
       
    25 #include <xqserviceprovider.h>
       
    26 
       
    27 
       
    28 class UriService;
       
    29 
       
    30 class ServiceApp : public QApplication // public QCoreApplication
       
    31 {
       
    32     Q_OBJECT
       
    33 
       
    34 public:
       
    35     ServiceApp(int &argc, char **argv);
       
    36     ~ServiceApp();
       
    37 
       
    38 // TEMP TEST
       
    39 public slots:    
       
    40     static void quit();
       
    41 
       
    42 private:
       
    43     UriService* mUriService;
       
    44 };
       
    45 
       
    46 
       
    47 class UriService : public XQServiceProvider
       
    48 {
       
    49     Q_OBJECT
       
    50     public:
       
    51         UriService( ServiceApp *parent = 0 );
       
    52         ~UriService();
       
    53 
       
    54     public slots:
       
    55         bool view(const QString& uri);
       
    56         bool view(const QString& uri, bool returnValue);
       
    57 
       
    58     private:
       
    59         ServiceApp* mServiceApp;
       
    60 };
       
    61 
       
    62 
       
    63 #endif  // JAVAQTSERVICEAPP_H