filemanager/src/inc/fmdrivewatcher/fmdrivewatcher.cpp
branchRCL_3
changeset 39 65326cf895ed
parent 38 491b3ed49290
child 42 f5c50b8af68c
equal deleted inserted replaced
38:491b3ed49290 39:65326cf895ed
     1 /*
       
     2 * Copyright (c) 2009 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 * 
       
    15 * Description:
       
    16 *     The source file of drive watcher
       
    17 */
       
    18 
       
    19 #include "fmdrivewatcher.h"
       
    20 
       
    21 #include "fmdrivewatcherprivate.h"
       
    22 
       
    23 FmDriveWatcher::FmDriveWatcher( QObject *parent ) : QObject( parent )
       
    24 {
       
    25     d = new FmDriveWatcherPrivate( this );
       
    26     connect( d, SIGNAL(driveAddedOrChanged()), this, SLOT( onDriveAddedOrChanged() ));
       
    27 }
       
    28 
       
    29 FmDriveWatcher::~FmDriveWatcher()
       
    30 {
       
    31     delete d;
       
    32 }
       
    33 
       
    34 
       
    35 void FmDriveWatcher::startWatch()
       
    36 {
       
    37     d->startWatch();
       
    38 }
       
    39 void FmDriveWatcher::cancelWatch()
       
    40 {
       
    41     d->cancelWatch();
       
    42 }
       
    43 
       
    44 void FmDriveWatcher::onDriveAddedOrChanged()
       
    45 {
       
    46     emit driveAddedOrChanged();
       
    47 }