.class public Lcom/mtv/services/P7PService;
.super Landroid/app/Service;


# instance fields
.field private forceTV:Lcom/forcetech/android/ForceTV;


# direct methods
.method public constructor <init>()V
    .locals 0

    invoke-direct {p0}, Landroid/app/Service;-><init>()V

    return-void
.end method


# virtual methods
.method public onBind(Landroid/content/Intent;)Landroid/os/IBinder;
    .locals 3

    new-instance v0, Lcom/forcetech/android/ForceTV;

    invoke-direct {v0}, Lcom/forcetech/android/ForceTV;-><init>()V

    invoke-static {p0, v0}, Lcom/mtv/application/MTVApplication;->writeLog(Ljava/lang/Object;Ljava/lang/Object;)V

    iput-object v0, p0, Lcom/mtv/services/P7PService;->forceTV:Lcom/forcetech/android/ForceTV;

    iget-object v0, p0, Lcom/mtv/services/P7PService;->forceTV:Lcom/forcetech/android/ForceTV;

    const-string v1, "p7p"

    const/16 v2, 0x26b7

    invoke-virtual {v0, v1, v2}, Lcom/forcetech/android/ForceTV;->start(Ljava/lang/String;I)V

    const/4 v0, 0x0

    return-object v0
.end method

.method public onUnbind(Landroid/content/Intent;)Z
    .locals 1

    const-string v0, "p7p stopped"

    invoke-static {p0, v0}, Lcom/mtv/application/MTVApplication;->writeLog(Ljava/lang/Object;Ljava/lang/Object;)V

    iget-object v0, p0, Lcom/mtv/services/P7PService;->forceTV:Lcom/forcetech/android/ForceTV;

    invoke-virtual {v0}, Lcom/forcetech/android/ForceTV;->stop()I

    invoke-super {p0, p1}, Landroid/app/Service;->onUnbind(Landroid/content/Intent;)Z

    move-result v0

    return v0
.end method
