X-Git-Url: http://cgit.sxemacs.org/?a=blobdiff_plain;f=lib%2Fqtcamconfig.h;h=7d06a82dc26e55a884fa29888dfba44dbb96c2c8;hb=630af723f5fd69a35614d48769502081ed801b43;hp=eb04bc953cecc6bdecbfecb15ddb9b1fe1de31f6;hpb=ddd8b7037bf34c35800f2a8cec0af45fcbd72a68;p=harmattan%2Fcameraplus diff --git a/lib/qtcamconfig.h b/lib/qtcamconfig.h index eb04bc9..7d06a82 100644 --- a/lib/qtcamconfig.h +++ b/lib/qtcamconfig.h @@ -1,5 +1,25 @@ // -*- c++ -*- +/*! + * This file is part of CameraPlus. + * + * Copyright (C) 2012 Mohammed Sameer + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ + #ifndef QT_CAM_CONFIG_H #define QT_CAM_CONFIG_H @@ -10,9 +30,10 @@ #define SCANNER_TYPE_V4L2 "v4l2" #define SCANNER_TYPE_ENUM "enum" +// TODO: kill those //#define RENDERER_TYPE_GL_SINK "glsink" //#define RENDERER_TYPE_X_OVERLAY "xoverlay" -//#define RENDERER_TYPE_MEEGO "meego" +#define RENDERER_TYPE_MEEGO "meego" #define RENDERER_TYPE_GENERIC "generic" class QtCamConfigPrivate; @@ -35,11 +56,8 @@ public: QString wrapperVideoSource() const; QString wrapperVideoSourceProperty() const; - QtCamImageSettings defaultImageSettings(); - QList imageSettings(); - - QtCamVideoSettings defaultVideoSettings(); - QList videoSettings(); + QtCamImageSettings *imageSettings(const QVariant& id); + QtCamVideoSettings *videoSettings(const QVariant& id); QString imageEncodingProfileName() const; QString imageEncodingProfilePath() const; @@ -47,6 +65,9 @@ public: QString videoEncodingProfileName() const; QString videoEncodingProfilePath() const; + QString imageSuffix() const; + QString videoSuffix() const; + QString audioCaptureCaps() const; private: