Functions

include/idutils.h File Reference

ID utilities. More...

#include <QString>

Go to the source code of this file.

Functions

QString getCleanId (const QString &id)
 Return leftmost part separated by ";".

Detailed Description

ID utilities.

Copyright (C) 2009-2010 Nokia Corporation

Author:
Joep van Gassel <joep.van.gassel@nokia.com>

This file is part of Sensord.

Sensord is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License version 2.1 as published by the Free Software Foundation.

Sensord 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 Sensord. If not, see <http://www.gnu.org/licenses/>.

Definition in file idutils.h.


Function Documentation

QString getCleanId ( const QString &  id  )  [inline]

Return leftmost part separated by ";".

For example return for "foo;bar" is "foo".

Parameters:
id ID to clean.
Returns:
cleaned ID.

Definition at line 37 of file idutils.h.