Touchgui/plugins/org.apache.cordova.splashscreen/src/ubuntu/splashscreen.h

changeset 0
e8ccd40d0ef6
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/Touchgui/plugins/org.apache.cordova.splashscreen/src/ubuntu/splashscreen.h	Thu Jun 04 14:50:33 2015 +0200
     1.3 @@ -0,0 +1,52 @@
     1.4 +/*
     1.5 + *
     1.6 + * Copyright 2013 Canonical Ltd.
     1.7 + *
     1.8 + * Licensed to the Apache Software Foundation (ASF) under one
     1.9 + * or more contributor license agreements.  See the NOTICE file
    1.10 + * distributed with this work for additional information
    1.11 + * regarding copyright ownership.  The ASF licenses this file
    1.12 + * to you under the Apache License, Version 2.0 (the
    1.13 + * "License"); you may not use this file except in compliance
    1.14 + * with the License.  You may obtain a copy of the License at
    1.15 + *
    1.16 + *   http://www.apache.org/licenses/LICENSE-2.0
    1.17 + *
    1.18 + * Unless required by applicable law or agreed to in writing,
    1.19 + * software distributed under the License is distributed on an
    1.20 + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
    1.21 + * KIND, either express or implied.  See the License for the
    1.22 + * specific language governing permissions and limitations
    1.23 + * under the License.
    1.24 + *
    1.25 +*/
    1.26 +
    1.27 +#ifndef SPLASHSCREEN_H
    1.28 +#define SPLASHSCREEN_H
    1.29 +
    1.30 +#include <QtCore>
    1.31 +#include <cplugin.h>
    1.32 +
    1.33 +class Splashscreen: public CPlugin {
    1.34 +    Q_OBJECT
    1.35 +public:
    1.36 +    explicit Splashscreen(Cordova *cordova);
    1.37 +
    1.38 +    virtual const QString fullName() override {
    1.39 +        return Splashscreen::fullID();
    1.40 +    }
    1.41 +
    1.42 +    virtual const QString shortName() override {
    1.43 +        return "SplashScreen";
    1.44 +    }
    1.45 +
    1.46 +    static const QString fullID() {
    1.47 +        return "SplashScreen";
    1.48 +    }
    1.49 +
    1.50 +public slots:
    1.51 +    void show(int, int);
    1.52 +    void hide(int, int);
    1.53 +};
    1.54 +
    1.55 +#endif // SPLASHSCREEN_H

mercurial